diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2024-02-25 17:40:19 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-07-08 10:12:07 -0700 |
commit | 815305b94864556c994934c7a7c830da7de1d94e (patch) | |
tree | 6d85f089b05520416eee1f51f80636b357cda73d /test/CheckTexinfo.py | |
parent | 0b561c7304ec82807212bd070fc6a1684c67607b (diff) | |
download | fork-ledger-815305b94864556c994934c7a7c830da7de1d94e.tar.gz fork-ledger-815305b94864556c994934c7a7c830da7de1d94e.tar.bz2 fork-ledger-815305b94864556c994934c7a7c830da7de1d94e.zip |
Use Python raw strings for regex methods argument
Diffstat (limited to 'test/CheckTexinfo.py')
-rwxr-xr-x | test/CheckTexinfo.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/CheckTexinfo.py b/test/CheckTexinfo.py index 7b13c50e..8a32d2c4 100755 --- a/test/CheckTexinfo.py +++ b/test/CheckTexinfo.py @@ -28,10 +28,10 @@ class CheckTexinfo (CheckOptions): fun_doc = str() fun_example = False item_regex = re.compile(self.function_pattern) - itemx_regex = re.compile('^@defunx') - example_regex = re.compile('^@smallexample\s+@c\s+command:') - fix_regex = re.compile('FIX') - comment_regex = re.compile('^\s*@c') + itemx_regex = re.compile(r'^@defunx') + example_regex = re.compile(r'^@smallexample\s+@c\s+command:') + fix_regex = re.compile(r'FIX') + comment_regex = re.compile(r'^\s*@c') for line in open(filename): line = line.strip() if state == state_normal: @@ -62,9 +62,9 @@ class CheckTexinfo (CheckOptions): option = None opt_doc = str() item_regex = re.compile(self.option_pattern) - itemx_regex = re.compile('^@itemx') - fix_regex = re.compile('FIX') - comment_regex = re.compile('^\s*@c') + itemx_regex = re.compile(r'^@itemx') + fix_regex = re.compile(r'FIX') + comment_regex = re.compile(r'^\s*@c') for line in open(filename): line = line.strip() if state == state_normal: |