Comments
Patch
@@ -71,7 +71,9 @@
stderr = pycompat.stderr
stdin = pycompat.stdin
stdout = pycompat.stdout
-stringio = pycompat.stringio
+bytesio = pycompat.bytesio
+# TODO deprecate stringio name, as it is a lie on Python 3.
+stringio = bytesio
xmlrpclib = pycompat.xmlrpclib
httpserver = urllibcompat.httpserver
@@ -64,7 +64,9 @@
sysexecutable = sys.executable
if sysexecutable:
sysexecutable = os.fsencode(sysexecutable)
- stringio = io.BytesIO
+ bytesio = io.BytesIO
+ # TODO deprecate stringio name, as it is a lie on Python 3.
+ stringio = bytesio
def maplist(*args):
return list(map(*args))
@@ -343,7 +345,8 @@
getcwd = os.getcwd
sysexecutable = sys.executable
shlexsplit = shlex.split
- stringio = cStringIO.StringIO
+ bytesio = cStringIO.StringIO
+ stringio = bytesio
maplist = map
ziplist = zip
rawinput = raw_input
@@ -12,7 +12,7 @@
from ..node import nullid
from .. import pycompat
-stringio = pycompat.stringio
+stringio = pycompat.bytesio
_pack = struct.pack
@@ -10,7 +10,7 @@
import struct
from .. import pycompat
-stringio = pycompat.stringio
+stringio = pycompat.bytesio
class mpatchError(Exception):
"""error raised when a delta cannot be decoded