Skip to content

Commit cd5b4a2

Browse files
hugovkjeromekelleher
authored andcommitted
Remove redundant Python 2 code
1 parent 278cbe3 commit cd5b4a2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

python/tests/test_cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ def capture_output(func, *args, **kwargs):
5050
Runs the specified function and arguments, and returns the
5151
tuple (stdout, stderr) as strings.
5252
"""
53-
buffer_class = io.BytesIO
54-
if sys.version_info[0] == 3:
55-
buffer_class = io.StringIO
53+
buffer_class = io.StringIO
5654
stdout = sys.stdout
5755
sys.stdout = buffer_class()
5856
stderr = sys.stderr

0 commit comments

Comments
 (0)