Skip to content

Commit

Permalink
Remove obsolete Python 2 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored and DimitriPapadopoulos committed Nov 6, 2022
1 parent 6d001a1 commit 3576f32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions codespell_lib/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re
import subprocess
import sys
from io import StringIO
from shutil import copyfile

import pytest
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3576f32

Please sign in to comment.