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/GenerateTests.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/GenerateTests.py')
-rwxr-xr-x | test/GenerateTests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/GenerateTests.py b/test/GenerateTests.py index 1301bcd0..87b65659 100755 --- a/test/GenerateTests.py +++ b/test/GenerateTests.py @@ -35,7 +35,7 @@ if not os.path.isdir(args.tests) and not os.path.isfile(args.tests): sys.exit(1) #def normalize(line): -# match = re.match("((\s*)([A-Za-z]+)?(\s*)([-0-9.]+)(\s*)([A-Za-z]+)?)( (.+))?$", line) +# match = re.match(r'((\s*)([A-Za-z]+)?(\s*)([-0-9.]+)(\s*)([A-Za-z]+)?)( (.+))?$', line) # if match: # if match.group(3): # prefix = match.group(3) + " " + match.group(5) |