[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-08 Thread Eisuke Kawashima
Eisuke Kawashima added the comment: > Why do you require a lower case string here? Well, I want to use urllib.parse.quote to escape special characters, such as ()[]#*/\, in filenames, and for visibility lower hex digits are preferable. PR 19766 does not break compatibil

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-08 Thread Eisuke Kawashima
Eisuke Kawashima added the comment: I require lower hex digits for percent encoding, which is allowed by the RFC. Small modifications of the codes can achieve it. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-04-28 Thread Eisuke Kawashima
New submission from Eisuke Kawashima : RFC 3986 (https://tools.ietf.org/html/rfc3986#section-2.1) allows lower hexadecimal digits for percent encoding, but urllib.parse.quote and its variants convert into only UPPERCASE digits [A-F]. I will create a PR for fix. -- components