if py3:
+ from os import fsencode
from shlex import quote
range = range
str_type = str
def items(x):
return x.items()
+ def argv_bytes(x):
+ """Return the original bytes passed to main() for an argv argument."""
+ return fsencode(x)
+
def bytes_from_uint(i):
return bytes((i,))
def items(x):
return x.iteritems()
+ def argv_bytes(x):
+ """Return the original bytes passed to main() for an argv argument."""
+ return x
+
def bytes_from_uint(i):
return chr(i)