Skip to content

Commit

Permalink
Update uvicorn/server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jun 4, 2021
1 parent 189f9ef commit 9092c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvicorn/server.py
Expand Up @@ -46,7 +46,7 @@ def __init__(self, config):

def run(self, sockets=None):
self.config.setup_event_loop()
if sys.version_info > (3, 6):
if sys.version_info >= (3, 7):
return asyncio.run(self.serve(sockets=sockets))
else:
return asyncio.get_event_loop().run_until_complete(self.serve(sockets=sockets))
Expand Down

0 comments on commit 9092c9e

Please sign in to comment.