https://github.com/python/cpython/commit/4374e1de87c54ba2291f49c2fa3a105bb6641ce6
commit: 4374e1de87c54ba2291f49c2fa3a105bb6641ce6
branch: main
author: Stan Ulbrych <89152624+stanfromirel...@users.noreply.github.com>
committer: gvanrossum <gvanros...@gmail.com>
date: 2025-02-17T19:01:36-08:00
summary:

gh-130195: Remove unimplemented option from pygettext (#130196)

Co-authored-by: Tomas R. <tomas.ro...@gmail.com>

files:
A Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst
M Tools/i18n/pygettext.py

diff --git 
a/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst 
b/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst
new file mode 100644
index 00000000000000..84edf0e3a09392
--- /dev/null
+++ b/Misc/NEWS.d/next/Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst
@@ -0,0 +1 @@
+Add warning messages when ``pygettext`` unimplemented ``-a/--extract-all`` 
option is called.
diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py
index 9654dd45067ff9..4681c84387958e 100755
--- a/Tools/i18n/pygettext.py
+++ b/Tools/i18n/pygettext.py
@@ -44,7 +44,7 @@
 
     -a
     --extract-all
-        Extract all strings.
+        Deprecated: Not implemented and will be removed in a future version.
 
     -cTAG
     --add-comments=TAG
@@ -590,6 +590,8 @@ class Options:
         if opt in ('-h', '--help'):
             usage(0)
         elif opt in ('-a', '--extract-all'):
+            print("DepreciationWarning: -a/--extract-all is not implemented 
and will be removed in a future version",
+                  file=sys.stderr)
             options.extractall = 1
         elif opt in ('-c', '--add-comments'):
             options.comment_tags.add(arg)

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to