mirror of
https://github.com/python/cpython.git
synced 2026-05-09 22:20:38 -04:00
8e97bd7ef4
* Always quote strings with non-ASCII characters.
* Allow some non-separator and non-control characters (like "." or "-")
be unquoted.
* Always quote strings that end with "\n".
* Use the fullmatch() method for clarity and optimization.
(cherry picked from commit 7ebbd27144)