1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-19 12:23:49 +03:00

python:tests: Fix invalid escape sequences

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton
2023-09-11 11:59:34 +12:00
committed by Andrew Bartlett
parent c0795c807a
commit 26ff87dcfe
3 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ class DnsHandler(SocketServer.BaseRequestHandler):
debug("%s: %s wrote:" % (SERVER_ID, self.client_address[0]))
global timeout
m = re.match(b'^timeout\s+([\d.]+)$', data.strip())
m = re.match(br'^timeout\s+([\d.]+)$', data.strip())
if m:
timeout = float(m.group(1))
debug("timing out at %s" % timeout)

View File

@@ -39,7 +39,7 @@ HASH_OPTION = "password hash userPassword schemes"
def _get_attribute(out, name):
p = re.compile("^" + name + ":\s+(\S+)")
p = re.compile("^" + name + r":\s+(\S+)")
for line in out.split("\n"):
m = p.match(line)
if m:

View File

@@ -39,7 +39,7 @@ HASH_OPTION = "password hash userPassword schemes"
def _get_attribute(out, name):
p = re.compile("^" + name + ":\s+(\S+)")
p = re.compile("^" + name + r":\s+(\S+)")
for line in out.split("\n"):
m = p.match(line)
if m: