Blackened

This commit is contained in:
Joel Collins 2019-11-20 14:13:01 +00:00
parent 36f195d6e7
commit b430a2d34a
15 changed files with 72 additions and 54 deletions

View file

@ -213,7 +213,9 @@ class ExtensibleSerialInstrument(object):
return self.read_multiline(termination_line)
else:
logging.debug("Reading response...")
line = self.readline().strip() # question: should we strip the final newline?
line = (
self.readline().strip()
) # question: should we strip the final newline?
logging.debug(f"Read finished. Got {line}")
return line
@ -223,7 +225,7 @@ class ExtensibleSerialInstrument(object):
response_string=r"%d",
re_flags=0,
parse_function=None,
**kwargs
**kwargs,
):
"""
Perform a query, returning a parsed form of the response.