Skip to content

Commit 8b2c03b

Browse files
committed
Revert "Use io.BytesIO instead of StringsIO.StringsIO"
This reverts commit 7e0653b.
1 parent c3a1fcd commit 8b2c03b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

bpython/test/test_curtsies_repl.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from contextlib import contextmanager
66
from mock import Mock, patch, MagicMock
77
import os
8+
from StringIO import StringIO
89
import sys
910
import tempfile
1011

@@ -13,11 +14,6 @@
1314
except ImportError:
1415
import unittest
1516

16-
try:
17-
from io import BytesIO
18-
except ImportError:
19-
from StringIO import StringIO as BytesIO
20-
2117
from bpython.curtsiesfrontend import repl as curtsiesrepl
2218
from bpython.curtsiesfrontend import interpreter
2319
from bpython import autocomplete
@@ -205,7 +201,7 @@ def test_list_win_not_visible_and_match_selected_if_one_option(self):
205201

206202
@contextmanager # from http://stackoverflow.com/a/17981937/398212 - thanks @rkennedy
207203
def captured_output():
208-
new_out, new_err = BytesIO(), BytesIO()
204+
new_out, new_err = StringIO(), StringIO()
209205
old_out, old_err = sys.stdout, sys.stderr
210206
try:
211207
sys.stdout, sys.stderr = new_out, new_err

0 commit comments

Comments
 (0)