summaryrefslogtreecommitdiffstats
path: root/tools/make-no-reassembly-profile.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /tools/make-no-reassembly-profile.py
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/make-no-reassembly-profile.py')
-rwxr-xr-xtools/make-no-reassembly-profile.py4
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 ########', '',