[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 compatibility.

--

___
Python tracker 
<https://bugs.python.org/issue40426>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue40426>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Library (Lib)
messages: 367551
nosy: e-kwsm
priority: normal
severity: normal
status: open
title: Unable to use lowercase hexadecimal digits for percent encoding
type: enhancement
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue40426>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com