]> granicus.if.org Git - python/commitdiff
Issue #8974: fix print calls in msgfmt.py.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 11 Jul 2010 17:39:46 +0000 (17:39 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 11 Jul 2010 17:39:46 +0000 (17:39 +0000)
Misc/NEWS
Tools/i18n/msgfmt.py

index 11ccc0e7c864142ac8cf7fee40e9a5e09fca3362..474ae024ddb7ffd63b34919467a00fc01b774822 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1773,7 +1773,7 @@ Tests
 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
index b3e6bec777d7d5fde73e463566da6d222420184a..c4b3c1a416d8d6d665c004e5c11200e439a8964a 100755 (executable)
@@ -165,7 +165,7 @@ def make(filename, outfile):
             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 @@ def make(filename, outfile):
                     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:]