From 9f9031867e5767230d5b985591a943b0658ae9d6 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 18 Feb 2025 11:05:36 +0000 Subject: [PATCH 1/3] Wrap line and fix typo --- .../Tools-Demos/2025-02-16-19-00-00.gh-issue-130195.19274.rst | 2 +- Tools/i18n/pygettext.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 index 84edf0e3a09392..814f9090953bd6 100644 --- 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 @@ -1 +1 @@ -Add warning messages when ``pygettext`` unimplemented ``-a/--extract-all`` option is called. +Add warning messages when :program:`pygettext` unimplemented ``-a/--extract-all`` option is called. diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index 4681c84387958e..41e8d7c0c827b5 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -590,7 +590,7 @@ 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", + print("DeprecationWarning: -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'): From 168b99cfaeeca0785c461e79571843ab204b03cc Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 18 Feb 2025 12:45:09 +0000 Subject: [PATCH 2/3] Wrap --- Tools/i18n/pygettext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index 41e8d7c0c827b5..d8fd697a997ce3 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -590,7 +590,8 @@ class Options: if opt in ('-h', '--help'): usage(0) elif opt in ('-a', '--extract-all'): - print("DeprecationWarning: -a/--extract-all is not implemented and will be removed in a future version", + print("DeprecationWarning: -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'): From 12f7532207f5a53efc9823ac38a804c8e6f0a4ac Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Fri, 4 Apr 2025 16:34:25 +0100 Subject: [PATCH 3/3] Update Tools/i18n/pygettext.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Éric --- Tools/i18n/pygettext.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index d8fd697a997ce3..41e8d7c0c827b5 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -590,8 +590,7 @@ class Options: if opt in ('-h', '--help'): usage(0) elif opt in ('-a', '--extract-all'): - print("DeprecationWarning: -a/--extract-all is not implemented " - "and will be removed in a future version", + print("DeprecationWarning: -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'):