From e553aeaefa5590c7036d5ba8f771aa201e8812bc Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 24 Feb 2017 12:43:54 -0800 Subject: [PATCH] Make pylint happy. --- debug/testlib.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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: -- 2.30.2