diff options
Diffstat (limited to 'tools/make-no-reassembly-profile.py')
-rwxr-xr-x | tools/make-no-reassembly-profile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make-no-reassembly-profile.py b/tools/make-no-reassembly-profile.py index cd68155a..25ae0153 100755 --- a/tools/make-no-reassembly-profile.py +++ b/tools/make-no-reassembly-profile.py @@ -33,12 +33,12 @@ def main(): # Make sure plugin prefs are present. cp = subprocess.run([tshark_path, '-G', 'plugins'], stdout=subprocess.PIPE, check=True, encoding='utf-8') plugin_lines = cp.stdout.splitlines() - dissector_count = len(tuple(filter(lambda p: re.search('\sdissector\s', p), plugin_lines))) + dissector_count = len(tuple(filter(lambda p: re.search(r'\sdissector\s', p), plugin_lines))) if dissector_count < MIN_PLUGINS: print('Found {} plugins but require {}.'.format(dissector_count, MIN_PLUGINS)) sys.exit(1) - rd_pref_re = re.compile('^#\s*(.*(reassembl|desegment)\S*):\s*TRUE') + rd_pref_re = re.compile(r'^#\s*(.*(reassembl|desegment)\S*):\s*TRUE') out_prefs = [ '# Generated by ' + os.path.basename(__file__), '', '####### Protocols ########', '', |