diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2024-07-05 12:57:53 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2024-07-05 12:57:53 +0000 |
commit | 913fcf89afdcd1a5416b8ab1a982930a1553d44e (patch) | |
tree | c06530bd1080e80dd98def17c930c633d990dd7d /Build/source/texk/web2c | |
parent | 8621b22d10db6f4272a007e6c196da9737fcf80a (diff) |
Merge two self._pos operations.
Python counts from '0', humans from '1'.
git-svn-id: svn://tug.org/texlive/trunk@71714 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rwxr-xr-x | Build/source/texk/web2c/tests/fix-changefile-lines.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/tests/fix-changefile-lines.py b/Build/source/texk/web2c/tests/fix-changefile-lines.py index 44137a4a88d..c98165f1a24 100755 --- a/Build/source/texk/web2c/tests/fix-changefile-lines.py +++ b/Build/source/texk/web2c/tests/fix-changefile-lines.py @@ -64,7 +64,6 @@ class WebReader: if self._pos >= len(self._web_lines): return None line = self._web_lines[self._pos] - self._pos += 1 # Look for starred section == part if line.startswith("@*"): @@ -78,7 +77,7 @@ class WebReader: # Prepare return values part = self.part_cnt section = self.section_cnt - line_number = self._pos + line_number = self._pos = self._pos + 1 # Look for '@i'nclude line result = re.match("^@i \"?(\\w+(\\.\\w+)?)\"?", line) |