summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorjack1142 <6032823+jack1142@users.noreply.github.com>2020-11-09 22:50:45 (GMT)
committerGitHub <noreply@github.com>2020-11-09 22:50:45 (GMT)
commitbfc6b63102d37ccb58a71711e2342143cd9f4d86 (patch)
tree7363462e163ebfa86f099802493389b42f217871 /Misc
parent1f73c320e2921605c4963e202f6bdac1ef18f2ce (diff)
downloadcpython-bfc6b63102d37ccb58a71711e2342143cd9f4d86.zip
cpython-bfc6b63102d37ccb58a71711e2342143cd9f4d86.tar.gz
cpython-bfc6b63102d37ccb58a71711e2342143cd9f4d86.tar.bz2
bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings. (GH-19875)
Adds support to Tools/i18n/pygettext.py for gettext calls in f-strings. This process is done by parsing the f-strings, processing each value, and flagging the ones which contain a gettext call. Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Tools-Demos/2020-05-03-01-30-46.bpo-36310.xDxxwY.rst2
2 files changed, 3 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 5285693a..35a87ae 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -949,6 +949,7 @@ Ivan Krstić
Anselm Kruis
Steven Kryskalla
Andrew Kuchling
+Jakub Kuczys
Dave Kuhlman
Jon Kuhn
Ilya Kulakov
diff --git a/Misc/NEWS.d/next/Tools-Demos/2020-05-03-01-30-46.bpo-36310.xDxxwY.rst b/Misc/NEWS.d/next/Tools-Demos/2020-05-03-01-30-46.bpo-36310.xDxxwY.rst
new file mode 100644
index 0000000..16749a8
--- /dev/null
+++ b/Misc/NEWS.d/next/Tools-Demos/2020-05-03-01-30-46.bpo-36310.xDxxwY.rst
@@ -0,0 +1,2 @@
+Allow :file:`Tools/i18n/pygettext.py` to detect calls to ``gettext`` in
+f-strings. \ No newline at end of file