Sat, 19 May 2018 00:05:01 +0200
[prologix] flake8
pygpibtoolkit/prologix.py | file | annotate | diff | comparison | revisions |
--- a/pygpibtoolkit/prologix.py Sun Jun 03 18:04:11 2018 +0200 +++ b/pygpibtoolkit/prologix.py Sat May 19 00:05:01 2018 +0200 @@ -117,7 +117,7 @@ self._cnx.write(b'++read eoi\r') # idem ret = '' i = 0 - while not ret.endswith('\r\n') and i<3: + while not ret.endswith('\r\n') and i < 3: ret += (b''.join(self._cnx.readlines())).decode() time.sleep(self._timeout) # required? i += 1