Skip to content

Commit d51ad50

Browse files
s-balltomasr8StanFromIreland
authored
Apply suggestions from code review
Co-authored-by: Tomas R. <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 51fcf09 commit d51ad50

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Lib/test/test_tools/test_msgfmt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ def test_nonexistent_file(self):
124124
assert_python_failure(msgfmt, 'nonexistent.po')
125125

126126

127-
class Test_multi_input(unittest.TestCase):
127+
class MultiInputTest(unittest.TestCase):
128128
"""Tests for the issue https://github.com/python/cpython/issues/79516
129-
msgfmt.py shall accept multiple input files
129+
msgfmt.py accepts multiple input files
130130
"""
131131

132132
def test_no_outputfile(self):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
:program:`msgfmt.py` is now able to merge more than one single po file into a compiled mo
1+
:program:`msgfmt.py` is now able to merge more than one po file into a compiled mo
22
file. When an entry exists in more than on input file, the last file wins.

Tools/i18n/msgfmt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
This program converts a textual Uniforum-style message catalog (.po file) into
77
a binary GNU catalog (.mo file). This is essentially the same function as the
88
GNU msgfmt program, however, it is a simpler implementation. Currently it
9-
handles plural forms and message contexts, but does not generate hash table.
9+
handles plural forms and message contexts, but does not generate a hash table.
1010
11-
Usage: msgfmt.py [OPTIONS] filename.po [filename.po ...]
11+
Usage: msgfmt.py [OPTIONS] filename.po ...
1212
1313
Options:
1414
-o file
@@ -105,7 +105,7 @@ def generate(messages):
105105

106106

107107
def make(filenames, outfile):
108-
""" Compiles one or several po files(s).
108+
""" Compiles one or more po files(s).
109109
110110
filenames is a string or an iterable of strings representing input file(s)
111111
outfile is a string for the name of an input file or None.

0 commit comments

Comments
 (0)