Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iptc/ip4tc.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class iptc(object):
class IPTCModule(object):
"""Superclass for Match and Target."""
pattern = re.compile(
'\s*(!)?\s*--([-\w]+)\s+(!)?\s*"?([^"]*?)"?(?=\s*(?:!?\s*--|$))')
r'\s*(!)?\s*--([-\w]+)\s+(!)?\s*"?([^"]*?)"?(?=\s*(?:!?\s*--|$))')

def __init__(self):
self._name = None
Expand Down
2 changes: 1 addition & 1 deletion iptc/xtables.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ class xtables_target(ct.Union):
_xtables_libdir = os.getenv("XTABLES_LIBDIR")
if _xtables_libdir is None:
import re
ldconfig_path_regex = re.compile('^(/.*):($| \(.*\)$)')
ldconfig_path_regex = re.compile(r'^(/.*):($| \(.*\)$)')
import subprocess
ldconfig = subprocess.Popen(
('/sbin/ldconfig', '-N', '-v'),
Expand Down