From 9e7448a3fb74437df61d209a87f0b1433a64ff3c Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Sun, 25 Oct 2020 08:58:49 +0200 Subject: [PATCH] Fix a bug in web.run_app() about Python version checking on Windows (#5130) --- CHANGES/5127.bugfix | 1 + aiohttp/web.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/5127.bugfix diff --git a/CHANGES/5127.bugfix b/CHANGES/5127.bugfix new file mode 100644 index 00000000000..581ab3e8c31 --- /dev/null +++ b/CHANGES/5127.bugfix @@ -0,0 +1 @@ +Fix a bug in ``web.run_app()`` about Python version checking on Windows diff --git a/aiohttp/web.py b/aiohttp/web.py index d1d602c3fc3..00e6eb706df 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -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