From 3576f32eee7048e0203e3b6dc250f9bc063268dd Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 6 Nov 2022 12:51:56 -0800 Subject: [PATCH] Remove obsolete Python 2 workaround --- codespell_lib/tests/test_basic.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/codespell_lib/tests/test_basic.py b/codespell_lib/tests/test_basic.py index f88f3de672..a9401b2a74 100644 --- a/codespell_lib/tests/test_basic.py +++ b/codespell_lib/tests/test_basic.py @@ -5,6 +5,7 @@ import re import subprocess import sys +from io import StringIO from shutil import copyfile import pytest @@ -908,10 +909,6 @@ def test_config_toml(tmp_path, capsys, kind): @contextlib.contextmanager def FakeStdin(text): - if sys.version[0] == '2': - from StringIO import StringIO - else: - from io import StringIO oldin = sys.stdin try: in_ = StringIO(text)