Blackened

This commit is contained in:
Joel Collins 2019-12-18 14:58:51 +00:00
parent 5a0188abd3
commit 15a6f13cd5
4 changed files with 5 additions and 5 deletions

View file

@ -69,4 +69,3 @@ class NestedStatusProperty(Resource):
return abort(404)
return jsonify(value)

View file

@ -36,4 +36,4 @@ class Schema(marshmallow.Schema):
data = self.dump(obj, many=many)
else:
data = self.dump(obj, many=many).data
return flask.jsonify(data, *args, **kwargs)
return flask.jsonify(data, *args, **kwargs)

View file

@ -97,6 +97,7 @@ class OpenflexureSettingsFile:
# HANDLE BASIC LOADING AND SAVING OF SETTINGS FILES
def load_json_file(config_path) -> dict:
"""
Open a .json config file

View file

@ -213,9 +213,9 @@ class ExtensibleSerialInstrument(object):
return self.read_multiline(termination_line)
else:
logging.debug("Reading response...")
line = (
self.readline(timeout).strip()
) # question: should we strip the final newline?
line = self.readline(
timeout
).strip() # question: should we strip the final newline?
logging.debug(f"Read finished. Got {line}")
return line