summaryrefslogtreecommitdiffstats
path: root/doc/extcap_example.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 /doc/extcap_example.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 'doc/extcap_example.py')
-rwxr-xr-xdoc/extcap_example.py5
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)