Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
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)
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:
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: