This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asicscwcs
Recipients asicscwcs, iritkatriel
Date 2021-06-28.09:44:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624873453.01.0.429317870252.issue44520@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-06-28 09:44:13asicscwcssetrecipients: + asicscwcs, iritkatriel
2021-06-28 09:44:13asicscwcssetmessageid: <1624873453.01.0.429317870252.issue44520@roundup.psfhosted.org>
2021-06-28 09:44:13asicscwcslinkissue44520 messages
2021-06-28 09:44:12asicscwcscreate