Skip to content

Commit dde5ef1

Browse files
s-balltomasr8
andauthored
Apply suggestions from code review
Co-authored-by: Tomas R. <[email protected]>
1 parent d45039c commit dde5ef1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tools/i18n/msgfmt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
file named filename.mo (based off the input file name(s)).
1818
If more than one input file is given, and if an output file is passed
1919
with -o option, then all the input files are merged. If keys are
20-
repeated (common for "" key for the header) the one from last file is used.
20+
repeated (common for "" key for the header) the one from the last file is used.
2121
If more than one input file is given, and no -o option is present, then
22-
every input file is compiled in its corresponding mo file (same name
22+
every input file is compiled to its corresponding mo file (same name
2323
with mo replacing po)
2424
2525
-h
@@ -102,10 +102,10 @@ def generate(messages):
102102
return output
103103

104104

105-
def make(filenames, outfile):
105+
def make(filenames, outfile=None):
106106
""" Compiles one or more po files(s).
107107
108-
filenames is a string or an iterable of strings representing input file(s)
108+
filenames is a string or an iterable of strings representing input file(s).
109109
outfile is a string for the name of an input file or None.
110110
111111
If it is not None, the output file receives a merge of the input files.

0 commit comments

Comments
 (0)