Cleanup: pep8

This commit is contained in:
2014-11-05 10:42:59 +01:00
parent 7f57c74f02
commit 53cbb0fa55
7 changed files with 12 additions and 21 deletions

View File

@@ -44,6 +44,7 @@ auth = HTTPBasicAuth()
import config
app.config.from_object(config.Development)
@api.representation('application/octet-stream')
def output_file(data, code, headers=None):
"""Makes a Flask response to return a file."""
@@ -154,7 +155,6 @@ class FileAPI(Resource):
elif command == 'checkout':
filepath = os.path.join(app.config['STORAGE_PATH'], filepath)
if not os.path.exists(filepath):
return jsonify(message="Path not found %r" % filepath)
elif os.path.isdir(filepath):