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