Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
36d6ee46
Commit
36d6ee46
authored
Jul 11, 2010
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8974: fix print calls in msgfmt.py.
parent
cfc29865
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Misc/NEWS
Misc/NEWS
+1
-1
Tools/i18n/msgfmt.py
Tools/i18n/msgfmt.py
+2
-2
No files found.
Misc/NEWS
View file @
36d6ee46
...
@@ -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
...
...
Tools/i18n/msgfmt.py
View file @
36d6ee46
...
@@ -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
:]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment