bpo-33189: pygettext.py now accepts only literal strings (GH-6364) · pythoncapi/cpython@6952482 · GitHub
Skip to content

Commit 6952482

Browse files
bpo-33189: pygettext.py now accepts only literal strings (pythonGH-6364)
as docstrings and translatable strings, and rejects bytes literals and f-string expressions.
1 parent b7e1eff commit 6952482

3 files changed

Lines changed: 76 additions & 11 deletions

File tree

Lib/test/test_tools/test_i18n.py

Lines changed: 65 additions & 6 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:program:`pygettext.py` now recognizes only literal strings as docstrings
2+
and translatable strings, and rejects bytes literals and f-string expressions.

Tools/i18n/pygettext.py

Lines changed: 9 additions & 5 deletions

0 commit comments

Comments
 (0)