Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write

their version strings to stdout, and not to sderr.
This commit is contained in:
Serhiy Storchaka 2013-09-05 17:44:53 +03:00
parent 34464d42a8
commit c56894d305
3 changed files with 8 additions and 2 deletions

View File

@ -780,7 +780,7 @@ def parseargs():
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

View File

@ -214,6 +214,12 @@ Documentation
- 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?
===================================

View File

@ -218,7 +218,7 @@ def main():
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