[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)
Ezio Melotti
report at bugs.python.org
Sat Jul 31 07:18:48 CEST 2010
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
> All the quote*/unquote* functions accept both str and bytes (except quote_from_bytes).
According to the documentation [0] unquote() only accepts str (not bytes), so checking for b'' in "if string in (b'', '')" seems wrong to me, especially if then it returns b''.
[0]: http://docs.python.org/dev/py3k/library/urllib.parse.html#urllib.parse.unquote
----------
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9301>
_______________________________________
More information about the Python-bugs-list
mailing list