Éric Araujo <[email protected]> added the comment:
The second message in this page reports that StringIO.StringIO works, but when
I pass a unicode string with non-ASCII chars there’s a method call that fails
because of implicit unicode-to-str conversion:
Traceback (most recent call last):
File "/usr/lib/python2.7/shlex.py", line 150, in read_token
elif nextchar in self.wordchars:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdf in position 63:
ordinal not in range(128)
I’ll try to create a Shlex instance, replace self.wordchars with a decoded
version and try again.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1170>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com