Message146220
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. |
|
Date |
User |
Action |
Args |
2011-10-23 05:42:51 | eric.araujo | set | recipients:
+ eric.araujo, loewis, rhettinger, mark.dickinson, belopolsky, orsenthil, vstinner, dexen, benjamin.peterson, cgwalters, mcepl, ezio.melotti, doughellmann, r.david.murray, nwerneck, fperez, Santiago.Romero, wombat |
2011-10-23 05:42:51 | eric.araujo | set | messageid: <1319348571.19.0.524419861853.issue1170@psf.upfronthosting.co.za> |
2011-10-23 05:42:50 | eric.araujo | link | issue1170 messages |
2011-10-23 05:42:50 | eric.araujo | create | |
|