(original) (raw)
changeset: 85547:e81699a6390c user: Serhiy Storchaka storchaka@gmail.com date: Thu Sep 05 17:44:53 2013 +0300 files: Lib/smtpd.py Misc/NEWS Tools/i18n/msgfmt.py description: Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write their version strings to stdout, and not to sderr. diff -r 922a98a5f0a8 -r e81699a6390c Lib/smtpd.py --- a/Lib/smtpd.py Thu Sep 05 17:33:04 2013 +0300 +++ b/Lib/smtpd.py Thu Sep 05 17:44:53 2013 +0300 @@ -780,7 +780,7 @@ if opt in ('-h', '--help'): usage(0) elif opt in ('-V', '--version'): - print(__version__, file=sys.stderr) + print(__version__) sys.exit(0) elif opt in ('-n', '--nosetuid'): options.setuid = 0 diff -r 922a98a5f0a8 -r e81699a6390c Misc/NEWS --- a/Misc/NEWS Thu Sep 05 17:33:04 2013 +0300 +++ b/Misc/NEWS Thu Sep 05 17:44:53 2013 +0300 @@ -214,6 +214,12 @@ - Issue #18783: Removed existing mentions of Python long type in docstrings, error messages and comments. +Tools/Demos +----------- + +- Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write + their version strings to stdout, and not to sderr. + What's New in Python 3.4.0 Alpha 1? =================================== diff -r 922a98a5f0a8 -r e81699a6390c Tools/i18n/msgfmt.py --- a/Tools/i18n/msgfmt.py Thu Sep 05 17:33:04 2013 +0300 +++ b/Tools/i18n/msgfmt.py Thu Sep 05 17:44:53 2013 +0300 @@ -218,7 +218,7 @@ if opt in ('-h', '--help'): usage(0) elif opt in ('-V', '--version'): - print("msgfmt.py", __version__, file=sys.stderr) + print("msgfmt.py", __version__) sys.exit(0) elif opt in ('-o', '--output-file'): outfile = arg /storchaka@gmail.com