Ammar Askar <am...@ammaraskar.com> added the comment:

I agree that 

urllib.parse.quote("/", safe=['/'])

should probably work. It looks like the reason it doesn't is because quote 
tries to normalize the safe iterable to ASCII characters only. As part of this 
it attempts to run `< 128` on each element of safe.

As part of this it does

'/' < 128

and fails.

----------

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

Reply via email to