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..814f9090953bd6 --- /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 :program:`pygettext` unimplemented ``-a/--extract-all`` option is called. diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index f0ee2ea386f18f..94ec51422f31c4 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -672,7 +672,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'):