Make pylint happy.
authorTim Newsome <tim@sifive.com>
Thu, 27 Jul 2017 20:34:54 +0000 (13:34 -0700)
committerTim Newsome <tim@sifive.com>
Thu, 27 Jul 2017 20:34:54 +0000 (13:34 -0700)
debug/testlib.py

index 2aab8ab484d70349a358547121968dfbf0d6b4e1..debe3685af30182c68b7cda555917103e09e9b4a 100644 (file)
@@ -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")