Irit Katriel <iritkatr...@gmail.com> added the comment:
The documentation states that this function accepts bytes: https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote_from_bytes None is not of type bytes, so raising a TypeError is not unreasonable. It would certainly be wrong to return any string. It could have returned None but that doesn't make a massive usability difference and it's not worth changing now. I propose to close this as 'not a bug'. ---------- resolution: -> not a bug status: open -> pending _______________________________________ 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