diff --git a/uvicorn/__main__.py b/uvicorn/__main__.py index 1f286c3fd..8a1dc979a 100644 --- a/uvicorn/__main__.py +++ b/uvicorn/__main__.py @@ -1,5 +1,4 @@ import uvicorn - if __name__ == "__main__": uvicorn.main() diff --git a/uvicorn/config.py b/uvicorn/config.py index 3390e58ab..6b7047df2 100644 --- a/uvicorn/config.py +++ b/uvicorn/config.py @@ -229,7 +229,7 @@ def bind_socket(self): sock.set_inheritable(True) if platform.system() == "Windows" and (self.workers > 1 or self.should_reload): - # We need to explicitly share the socket on Windows. + #  We need to explicitly share the socket on Windows. sock = socket.fromshare(sock.share(os.getpid())) message = "Uvicorn running on %s://%s:%d (Press CTRL+C to quit)" diff --git a/uvicorn/workers.py b/uvicorn/workers.py index 1b8b283a6..8c823d8f6 100644 --- a/uvicorn/workers.py +++ b/uvicorn/workers.py @@ -1,6 +1,7 @@ import asyncio from gunicorn.workers.base import Worker + from uvicorn.config import Config from uvicorn.main import Server