Skip to content

Commit e88c98a

Browse files
committed
import StringIO from io
removing a Python 2 compatibility import
1 parent f2d3b53 commit e88c98a

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
@@ -5,6 +5,7 @@ Internal
55
--------
66

77
* Support only Python 3.9+ in `pyproject.toml`.
8+
* Remove unused Python 2 compatibility code.
89

910

1011
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)