Олег Масло <asicsc...@gmail.com> added the comment:

Irit, the problem is that if you pass the bs parameter equal to None to the 
quote_from_bytes function, then the bs parameter will not be checked for 
existence, because a TypeError exception will be raised, and an empty string 
needs to be returned in this case. The check "if not bs" should be earlier than 
"if not isinstance (bs, (bytes, bytearray))", because "if bs = None", then the 
code will not reach this check

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44520>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to