diff options
Diffstat (limited to '')
-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) |