diff options
Diffstat (limited to 'Build/source/texk/web2c')
-rwxr-xr-x | Build/source/texk/web2c/tests/fix-changefile-lines.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/tests/fix-changefile-lines.py b/Build/source/texk/web2c/tests/fix-changefile-lines.py index ca07ced1a91..feec5cf4130 100755 --- a/Build/source/texk/web2c/tests/fix-changefile-lines.py +++ b/Build/source/texk/web2c/tests/fix-changefile-lines.py @@ -36,8 +36,7 @@ def main(): # Run through the two files in parallel ch_reader.traverse(web_reader, opt_handler) - for line in ch_reader.get_lines(): - print(line) + print(ch_reader.get_lines()) class WebReader: @@ -51,7 +50,7 @@ class WebReader: self.section_cnt = 0 try: with open(web_file, "r") as file: - self._web_lines = [line.rstrip() for line in file] + self._web_lines = file.readlines() except OSError: eprint(f"Could not open {web_file}") print(USAGE) @@ -105,7 +104,7 @@ class ChangeReader: self._match_lines = None try: with open(change_file, "r") as file: - self._lines = [line.rstrip() for line in file] + self._lines = file.readlines() except OSError: eprint(f"Could not open {change_file}") print(USAGE) |