[issue1170] shlex have problems with parsing unicode

Alexander Belopolsky report at bugs.python.org
Tue Jul 27 20:24:10 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Fernando,

Is this 2.7 only problem?  In 3.2


>>> list(shlex.shlex('ab'))
['ab']

and bytes are not supported.

>> list(shlex.shlex(b'ab'))
Traceback (most recent call last):
..
AttributeError: 'bytes' object has no attribute 'read'

It is debatable whether either is a bug.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1170>
_______________________________________


More information about the Python-bugs-list mailing list