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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy