From: Tim Newsome Date: Thu, 27 Jul 2017 20:34:54 +0000 (-0700) Subject: Make pylint happy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ccdbc82219827853a4152ff37fc1eab6602bf83e;p=riscv-tests.git Make pylint happy. --- diff --git a/debug/testlib.py b/debug/testlib.py index 2aab8ab..debe368 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -207,10 +207,10 @@ class Openocd(object): messaged = False while True: log = open(Openocd.logname).read() - m = re.search("Listening on port (\d+) for gdb connections", log) + m = re.search(r"Listening on port (\d+) for gdb connections", log) if m: self.port = int(m.group(1)) - break; + break if not self.process.poll() is None: header("OpenOCD log")