Mercurial > hgrepos > Python > apps > py-cutils
changeset 378:32b937a73068
treesum: Rename PATTERN0 to PATTERNE
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 12 May 2025 09:48:23 +0200 |
| parents | 6b327893a9c3 |
| children | 6d7659a709f2 |
| files | cutils/treesum.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cutils/treesum.py Mon May 12 09:40:33 2025 +0200 +++ b/cutils/treesum.py Mon May 12 09:48:23 2025 +0200 @@ -1694,7 +1694,7 @@ """ PATTERNC = re.compile(br"\A\s*[#;].*\r?\n\Z") # comments, no CRC - PATTERN0 = re.compile(br"\A[ \t]*\r?\n\Z") # empty lines + PATTERNE = re.compile(br"\A[ \t]*\r?\n\Z") # empty lines PATTERN1 = re.compile(br"\A(VERSION|FSENCODING|FLAGS|TIMESTAMP|ISOTIMESTAMP|CRC32)[ \t]*=[ \t]*([^ \t]+)[ \t]*\r?\n\Z") # noqa: E501 line too long PATTERN2 = re.compile(br"\A(ROOT|COMMENT|ERROR|GENERATOR|FNMATCH|ACCEPT-TREESUM)[ \t]*\((.*)\)[ \t]*\r?\n\Z") # noqa: E501 line too long PATTERN3 = re.compile(br"\ASIZE[ \t]*\((.*)\)([ \t]*=[ \t]*([0-9., '_]*[0-9]))?[ \t]*\r?\n\Z") # noqa: E501 line too long @@ -1778,7 +1778,7 @@ # Skip comments and do NOT update CRC for comment lines if self.PATTERNC.search(line): continue - if not self.PATTERN0.search(line): + if not self.PATTERNE.search(line): break # Empty lines count for CRC self._update_crc(line)
