Ezio Melotti <ezio.melo...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9301>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to