From 913fcf89afdcd1a5416b8ab1a982930a1553d44e Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Fri, 5 Jul 2024 12:57:53 +0000 Subject: 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 --- Build/source/texk/web2c/tests/fix-changefile-lines.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Build/source/texk') 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) -- cgit v1.2.3