diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:26 +0000 |
commit | c4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch) | |
tree | 93d5c6aa93d9987680dd1adad5685e2ad698f223 /doc/extcap_example.py | |
parent | Adding upstream version 4.2.6. (diff) | |
download | wireshark-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 'doc/extcap_example.py')
-rwxr-xr-x | doc/extcap_example.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/extcap_example.py b/doc/extcap_example.py index 8c4a6b6d..60ec7e93 100755 --- a/doc/extcap_example.py +++ b/doc/extcap_example.py @@ -9,7 +9,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -""" +r""" This is a generic example, which produces pcap packages every n seconds, and is configurable via extcap options. @@ -36,7 +36,6 @@ import re import argparse import time import struct -import array from threading import Thread ERROR_USAGE = 0 @@ -504,7 +503,7 @@ if __name__ == '__main__': if len(unknown) > 1: print("Extcap Example %d unknown arguments given" % len(unknown)) - m = re.match('example(\d+)', args.extcap_interface) + m = re.match(r'example(\d+)', args.extcap_interface) if not m: sys.exit(ERROR_INTERFACE) interface = m.group(1) |