From: Tim Newsome Date: Fri, 24 Feb 2017 20:43:54 +0000 (-0800) Subject: Make pylint happy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e553aeaefa5590c7036d5ba8f771aa201e8812bc;p=riscv-tests.git Make pylint happy. --- diff --git a/debug/testlib.py b/debug/testlib.py index 83bbe3e..11ea4fb 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -83,14 +83,15 @@ class Spike(object): if with_jtag_gdb: self.port = None for _ in range(30): - m = re.search(r"Listening for remote bitbang connection on port (\d+).", - file(self.logname).read()) + m = re.search(r"Listening for remote bitbang connection on " + r"port (\d+).", open(self.logname).read()) if m: self.port = int(m.group(1)) os.environ['REMOTE_BITBANG_PORT'] = m.group(1) break time.sleep(0.11) - assert self.port, "Didn't get spike message about bitbang connection" + assert self.port, "Didn't get spike message about bitbang " \ + "connection" def __del__(self): try: