Skip to content

Commit

Permalink
[3.7] Fix a bug in web.run_app() about Python version checking on Win…
Browse files Browse the repository at this point in the history
…dows (#5130) (#5131)

Backports the following commits to 3.7:
 - Fix a bug in web.run_app() about Python version checking on Windows (#5130)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
  • Loading branch information
aio-libs-github-bot[bot] and asvetlov committed Oct 25, 2020
1 parent 6ae2751 commit 61c297a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/5127.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug in ``web.run_app()`` about Python version checking on Windows
2 changes: 1 addition & 1 deletion aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ async def _run_app(
# sleep forever by 1 hour intervals,
# on Windows before Python 3.8 wake up every 1 second to handle
# Ctrl+C smoothly
if sys.platform == "win32" and sys.version_info < 3.8:
if sys.platform == "win32" and sys.version_info < (3, 8):
delay = 1
else:
delay = 3600
Expand Down

0 comments on commit 61c297a

Please sign in to comment.