]> granicus.if.org Git - python/commit
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 19 Apr 2018 07:34:20 +0000 (00:34 -0700)
committerGitHub <noreply@github.com>
Thu, 19 Apr 2018 07:34:20 +0000 (00:34 -0700)
commit6f870935c2e024cbd1cc379f85e6a66d7711dcc7
tree74c32722ee254af7f23c74868e48add814db4cb0
parentfc8693dc7a228d687bf066e163f82a7724b58b68
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)

as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.
(cherry picked from commit 69524821a87251b7aee966f6e46b3810ff5aaa64)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_tools/test_i18n.py
Misc/NEWS.d/next/Tools-Demos/2018-04-03-18-10-00.bpo-33189.QrXR00.rst [new file with mode: 0644]
Tools/i18n/pygettext.py