Skip to content

Commit ec01e49

Browse files
committed
import StringIO from io
removing a Python 2 compatibility import
1 parent 3c4591c commit ec01e49

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Internal
99
* Make CI names and properties more consistent.
1010
* Enable typechecking for several files.
1111
* CI: turn off fail-fast matrix strategy.
12+
* Remove unused Python 2 compatibility code.
1213

1314

1415
1.36.0 (2025/07/19)

test/features/steps/wrappers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# type: ignore
22

3+
from io import StringIO
34
import re
45
import sys
56
import textwrap
67

78
import pexpect
89

9-
try:
10-
from StringIO import StringIO
11-
except ImportError:
12-
from io import StringIO
13-
1410

1511
def expect_exact(context, expected, timeout):
1612
timedout = False

0 commit comments

Comments
 (0)