From 649ee70574e5f64c09ada38da38dab6761c34549 Mon Sep 17 00:00:00 2001 From: Vikram Narayanan Date: Wed, 24 Nov 2021 21:20:52 -0800 Subject: [PATCH] stdin: Fix flake version_info check --- src/flake8_polyfill/stdin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flake8_polyfill/stdin.py b/src/flake8_polyfill/stdin.py index aab1e01..95ac5e3 100644 --- a/src/flake8_polyfill/stdin.py +++ b/src/flake8_polyfill/stdin.py @@ -53,7 +53,7 @@ def monkey_patch(which): from flake8.engine import pep8 as _pep8 stdin_get_value = _pep8.stdin_get_value - elif (3, 0) <= version.version_info < (4, 0): + elif (3, 0) <= version.version_info <= (5, 0, 0): from flake8 import utils stdin_get_value = utils.stdin_get_value