Use black with -l 120 param.

This commit is contained in:
grossmj committed 2021-04-13 18:46:50 +09:30
1 parent f928738bd5
commit c021e21309
194 files changed
+6034 -4564

No files matched your search

+2 -2
View File
@@ -28,11 +28,11 @@ from gns3server.utils.http_client import HTTPClient
from gns3server.db.tasks import connect_to_db, get_computes
import logging
log = logging.getLogger(__name__)
def create_startup_handler(app: FastAPI) -> Callable:
async def start_app() -> None:
loop = asyncio.get_event_loop()
logger = logging.getLogger("asyncio")
@@ -65,6 +65,7 @@ def create_startup_handler(app: FastAPI) -> Callable:
# without md5sum already computed we start the
# computing with server start
from gns3server.compute.qemu import Qemu
asyncio.ensure_future(Qemu.instance().list_images())
for module in MODULES:
@@ -76,7 +77,6 @@ def create_startup_handler(app: FastAPI) -> Callable:
def create_shutdown_handler(app: FastAPI) -> Callable:
async def shutdown_handler() -> None:
await HTTPClient.close_session()
await Controller.instance().stop()