]> 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 06:49:15 +0000 (23:49 -0700)
committerGitHub <noreply@github.com>
Thu, 19 Apr 2018 06:49:15 +0000 (23:49 -0700)
commita4fb580f701df5bf07ce569a4f43abfb05c92759
treee0c18565c26bb7418938402d846dac19de1645ee
parent198c0c0509311cc0f6365ae920c2d87dbcfe7924
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