mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +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:
committed by
Andrew Bartlett
parent
c0795c807a
commit
26ff87dcfe
@@ -77,7 +77,7 @@ class DnsHandler(SocketServer.BaseRequestHandler):
|
|||||||
debug("%s: %s wrote:" % (SERVER_ID, self.client_address[0]))
|
debug("%s: %s wrote:" % (SERVER_ID, self.client_address[0]))
|
||||||
|
|
||||||
global timeout
|
global timeout
|
||||||
m = re.match(b'^timeout\s+([\d.]+)$', data.strip())
|
m = re.match(br'^timeout\s+([\d.]+)$', data.strip())
|
||||||
if m:
|
if m:
|
||||||
timeout = float(m.group(1))
|
timeout = float(m.group(1))
|
||||||
debug("timing out at %s" % timeout)
|
debug("timing out at %s" % timeout)
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ HASH_OPTION = "password hash userPassword schemes"
|
|||||||
|
|
||||||
|
|
||||||
def _get_attribute(out, name):
|
def _get_attribute(out, name):
|
||||||
p = re.compile("^" + name + ":\s+(\S+)")
|
p = re.compile("^" + name + r":\s+(\S+)")
|
||||||
for line in out.split("\n"):
|
for line in out.split("\n"):
|
||||||
m = p.match(line)
|
m = p.match(line)
|
||||||
if m:
|
if m:
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ HASH_OPTION = "password hash userPassword schemes"
|
|||||||
|
|
||||||
|
|
||||||
def _get_attribute(out, name):
|
def _get_attribute(out, name):
|
||||||
p = re.compile("^" + name + ":\s+(\S+)")
|
p = re.compile("^" + name + r":\s+(\S+)")
|
||||||
for line in out.split("\n"):
|
for line in out.split("\n"):
|
||||||
m = p.match(line)
|
m = p.match(line)
|
||||||
if m:
|
if m:
|
||||||
|
|||||||
Reference in New Issue
Block a user