Commit 36d6ee46 authored by Martin v. Löwis's avatar Martin v. Löwis

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

parent cfc29865
...@@ -1773,7 +1773,7 @@ Tests ...@@ -1773,7 +1773,7 @@ Tests
Tools/Demos 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 - iobench (a file I/O benchmark) and ccbench (a concurrency benchmark) were
added to the `Tools/` directory. They were previously living in the added to the `Tools/` directory. They were previously living in the
......
...@@ -165,7 +165,7 @@ def make(filename, outfile): ...@@ -165,7 +165,7 @@ def make(filename, outfile):
section = STR section = STR
if l.startswith('msgstr['): if l.startswith('msgstr['):
if not is_plural: 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) file=sys.stderr)
sys.exit(1) sys.exit(1)
l = l.split(']', 1)[1] l = l.split(']', 1)[1]
...@@ -173,7 +173,7 @@ def make(filename, outfile): ...@@ -173,7 +173,7 @@ def make(filename, outfile):
msgstr += b'\0' # Separator of the various plural forms msgstr += b'\0' # Separator of the various plural forms
else: else:
if is_plural: 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) file=sys.stderr)
sys.exit(1) sys.exit(1)
l = l[6:] l = l[6:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment