diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2020-09-26 22:33:21 +0100 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2020-09-28 08:01:21 +0000 |
commit | 6dd9c098ad94c366f5248cfe2d48e86763046f44 (patch) | |
tree | 4aa3b4196aaa96ccd667a5cd71aef24eb38185bf /tools/check_tfs.py | |
parent | 24ef8400fe967d286435e3f732c12729aa990999 (diff) |
check_typed_item_calls.py: add --consecutive flag
Add a check to point out where consecutive items have the same filter
but different labels. Quite a few of these look like bugs.
Also, make some REs raw strings, as identified as an issue in
https://gitlab.com/wireshark/wireshark/-/merge_requests/346
Diffstat (limited to 'tools/check_tfs.py')
-rwxr-xr-x | tools/check_tfs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/check_tfs.py b/tools/check_tfs.py index 89581d00f0..5d8a06d740 100755 --- a/tools/check_tfs.py +++ b/tools/check_tfs.py @@ -60,8 +60,8 @@ class TFS: def removeComments(code_string): - code_string = re.sub(re.compile("/\*.*?\*/",re.DOTALL ) ,"" ,code_string) # C-style comment - code_string = re.sub(re.compile("//.*?\n" ) ,"" ,code_string) # C++-style comment + code_string = re.sub(re.compile(r"/\*.*?\*/",re.DOTALL ) ,"" ,code_string) # C-style comment + code_string = re.sub(re.compile(r"//.*?\n" ) ,"" ,code_string) # C++-style comment return code_string @@ -89,7 +89,7 @@ def findItems(filename): def is_dissector_file(filename): - p = re.compile('.*packet-.*\.c') + p = re.compile(r'.*packet-.*\.c') return p.match(filename) def findDissectorFilesInFolder(folder): |