[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None
Serhiy Storchaka
report at bugs.python.org
Mon Jun 28 10:06:09 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
If you want to interpret None as an empty string, you can just write quote_from_bytes(data or b'').
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44520>
_______________________________________
More information about the Python-bugs-list
mailing list