"""
assert errors == 'strict'
- f = StringIO(input)
+ # using str() because of cStringIO's Unicode undesired Unicode behavior.
+ f = StringIO(str(input))
g = StringIO()
quopri.encode(f, g, 1)
output = g.getvalue()
"""
assert errors == 'strict'
- f = StringIO(input)
+ f = StringIO(str(input))
g = StringIO()
quopri.decode(f, g)
output = g.getvalue()
assert errors == 'strict'
from cStringIO import StringIO
from binascii import b2a_uu
- infile = StringIO(input)
+ # using str() because of cStringIO's Unicode undesired Unicode behavior.
+ infile = StringIO(str(input))
outfile = StringIO()
read = infile.read
write = outfile.write
assert errors == 'strict'
from cStringIO import StringIO
from binascii import a2b_uu
- infile = StringIO(input)
+ infile = StringIO(str(input))
outfile = StringIO()
readline = infile.readline
write = outfile.write