1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

update import syntax for new isort version

This commit is contained in:
checktheroads
2020-09-28 14:55:09 -07:00
parent 7f52bd168c
commit 1128d1f902
13 changed files with 50 additions and 9 deletions

View File

@@ -83,6 +83,7 @@ async def clear_cache():
async def cache_config():
"""Add configuration to Redis cache as a pickled object."""
# Standard Library
import pickle
cache = AsyncCache(
@@ -101,6 +102,7 @@ def on_starting(server: Arbiter):
log.info("Python {} detected ({} required)", python_version, required)
async def runner():
# Standard Library
from asyncio import gather
await gather(build_ui(), cache_config())
@@ -156,6 +158,7 @@ class HyperglassWSGI(BaseApplication):
def start(**kwargs):
"""Start hyperglass via gunicorn."""
# Project
from hyperglass.api import app
HyperglassWSGI(