Skip to content

Commit dce101a

Browse files
Switch to plain StringIO for Py2
0 length strings break without this change, apparently you cannot 'write' to a cStringIO.StringI It also doesn't support unicode.
1 parent 90061f8 commit dce101a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrepl/bencode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
try:
15-
from cStringIO import StringIO
15+
from StringIO import StringIO
1616
except ImportError:
1717
from io import StringIO
1818

0 commit comments

Comments
 (0)