Skip to content

Commit 25fcd39

Browse files
committed
Issue python#8974: fix print calls in msgfmt.py.
1 parent 8e0c996 commit 25fcd39

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ Tests
17731773
Tools/Demos
17741774
-----------
17751775

1776-
- Issue #5464: Implement plural forms in msgfmt.py.
1776+
- Issue #5464, #8974: Implement plural forms in msgfmt.py.
17771777

17781778
- iobench (a file I/O benchmark) and ccbench (a concurrency benchmark) were
17791779
added to the `Tools/` directory. They were previously living in the

Tools/i18n/msgfmt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ def make(filename, outfile):
165165
section = STR
166166
if l.startswith('msgstr['):
167167
if not is_plural:
168-
print(sys.stderr, 'plural without msgid_plural on %s:%d' % (infile, lno),
168+
print('plural without msgid_plural on %s:%d' % (infile, lno),
169169
file=sys.stderr)
170170
sys.exit(1)
171171
l = l.split(']', 1)[1]
172172
if msgstr:
173173
msgstr += b'\0' # Separator of the various plural forms
174174
else:
175175
if is_plural:
176-
print(sys.stderr, 'indexed msgstr required for plural on %s:%d' % (infile, lno),
176+
print('indexed msgstr required for plural on %s:%d' % (infile, lno),
177177
file=sys.stderr)
178178
sys.exit(1)
179179
l = l[6:]

0 commit comments

Comments
 (0)