[Python-checkins] r82819 - in python/branches/py3k: Misc/NEWS Tools/i18n/msgfmt.py

martin.v.loewis python-checkins at python.org
Sun Jul 11 19:39:46 CEST 2010


Author: martin.v.loewis
Date: Sun Jul 11 19:39:46 2010
New Revision: 82819

Log:
Issue #8974: fix print calls in msgfmt.py.


Modified:
   python/branches/py3k/Misc/NEWS
   python/branches/py3k/Tools/i18n/msgfmt.py

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Sun Jul 11 19:39:46 2010
@@ -1773,7 +1773,7 @@
 Tools/Demos
 -----------
 
-- Issue #5464: Implement plural forms in msgfmt.py.
+- Issue #5464, #8974: Implement plural forms in msgfmt.py.
 
 - iobench (a file I/O benchmark) and ccbench (a concurrency benchmark) were
   added to the `Tools/` directory.  They were previously living in the

Modified: python/branches/py3k/Tools/i18n/msgfmt.py
==============================================================================
--- python/branches/py3k/Tools/i18n/msgfmt.py	(original)
+++ python/branches/py3k/Tools/i18n/msgfmt.py	Sun Jul 11 19:39:46 2010
@@ -165,7 +165,7 @@
             section = STR
             if l.startswith('msgstr['):
                 if not is_plural:
-                    print(sys.stderr, 'plural without msgid_plural on %s:%d' % (infile, lno),
+                    print('plural without msgid_plural on %s:%d' % (infile, lno),
                           file=sys.stderr)
                     sys.exit(1)
                 l = l.split(']', 1)[1]
@@ -173,7 +173,7 @@
                     msgstr += b'\0' # Separator of the various plural forms
             else:
                 if is_plural:
-                    print(sys.stderr, 'indexed msgstr required for plural on  %s:%d' % (infile, lno),
+                    print('indexed msgstr required for plural on  %s:%d' % (infile, lno),
                           file=sys.stderr)
                     sys.exit(1)
                 l = l[6:]


More information about the Python-checkins mailing list