]> granicus.if.org Git - python/commitdiff
Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 5 Sep 2013 14:44:53 +0000 (17:44 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 5 Sep 2013 14:44:53 +0000 (17:44 +0300)
their version strings to stdout, and not to sderr.

Lib/smtpd.py
Misc/NEWS
Tools/i18n/msgfmt.py

index f28036a5b4f2e66a2dbedd1812cb3e804c71cb61..1fa157ade7ccf6b88e20f745704264a4feb2783e 100755 (executable)
@@ -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
index 8b6aa564f7c74eead42e3d2083f6d29b098fa047..e325f371450aac53698be2cfc69bd2248d9458d4 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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?
 ===================================
index cd90691bf126df9839acdd1127f2788d98437fce..b0751a1ffc1dcdee9c2302d3ce48b5e64376b18b 100755 (executable)
@@ -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