compiler

Log | Files | Refs | README

commit 4a77d570da41d21d0c0896be4b7ffdc8ea731292
parent 09aae896cb4497d42fe2f448bcd67749e980df77
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date:   Tue, 13 Jan 2026 18:59:54 +0530

Add missing aiohttp import for web handling

Added missing import for aiohttp to handle web requests.
Diffstat:
Mbackend.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backend.py b/backend.py @@ -1,4 +1,5 @@ import asyncio +import aiohttp # Added missing import from aiohttp import web import json import subprocess @@ -46,7 +47,7 @@ def check_and_install_packages(code, ws=None, loop=None): from_imports = re.findall(r'^\s*from\s+(\w+)', code, re.MULTILINE) unique_packages = set(imports + from_imports) for pkg in unique_packages: - if pkg in ['os', 'sys', 'time', 'random', 'math', 'json', 'asyncio', 'threading', 'platform', 'subprocess', 're']: + if pkg in ['os', 'sys', 'time', 'random', 'math', 'json', 'asyncio', 'threading', 'platform', 'subprocess', 're', 'aiohttp']: continue install_package(pkg, ws, loop)
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror