Skip to content

Commit 1f4e5ac

Browse files
authored
fix details
1 parent 2c27120 commit 1f4e5ac

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Lib/test/test_tools/test_i18n.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ class Test_msgfmt(unittest.TestCase):
522522
bpo-35335 - bpo-9741
523523
"""
524524

525-
script = os.path.join(toolsdir,'i18n', 'msgfmt.py')
525+
script = os.path.join(toolsdir, 'i18n', 'msgfmt.py')
526526

527527
# binary images of tiny po files
528528
# windows end of lines for first one
@@ -651,8 +651,7 @@ def test_help(self):
651651
self.assertTrue(stderr.startswith(
652652
b'Generate binary message catalog from textual'
653653
b' translation description.'
654-
)
655-
)
654+
))
656655

657656
def test_wrong(self):
658657
"""Test wrong option"""
@@ -661,8 +660,7 @@ def test_wrong(self):
661660
self.assertTrue(stderr.startswith(
662661
b'Generate binary message catalog from textual'
663662
b' translation description.'
664-
)
665-
)
663+
))
666664

667665
def test_outputfile(self):
668666
"""Test script with -o option - 1 single file, Windows EOL"""
@@ -759,7 +757,6 @@ def update_POT_snapshots():
759757
output_file.write_text(output, encoding='utf-8')
760758

761759

762-
763760
if __name__ == '__main__':
764761
# To regenerate POT files
765762
if len(sys.argv) > 1 and sys.argv[1] == '--snapshot-update':

Tools/i18n/msgfmt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#! /usr/bin/env python3
22
# Written by Martin v. Löwis <[email protected]>
33
# Modified by s-ball <[email protected]>
4+
45
"""Generate binary message catalog from textual translation description.
56
67
This program converts a textual Uniforum-style message catalog (.po file) into

0 commit comments

Comments
 (0)