Skip to content

Commit f9c88e9

Browse files
committed
Linting
1 parent de29b0f commit f9c88e9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/core/cs3iface.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,9 @@ def readfile(endpoint, filepath, userid, lockid):
424424
'X-Access-Token': userid,
425425
'X-Reva-Transfer': protocol.token
426426
}
427-
fileget = requests.get(url=protocol.download_endpoint, headers=headers, verify=ctx['ssl_verify'], timeout=ctx['http_timeout'], stream=True)
427+
fileget = requests.get(url=protocol.download_endpoint, headers=headers,
428+
verify=ctx['ssl_verify'], timeout=ctx['http_timeout'],
429+
stream=True)
428430
except requests.exceptions.RequestException as e:
429431
log.error(f'msg="Exception when downloading file from Reva" reason="{e}"')
430432
yield IOError(e)
@@ -483,7 +485,8 @@ def writefile(endpoint, filepath, userid, content, size, lockmd, islock=False):
483485
'X-Lock-Id': lockid,
484486
'X-Lock-Holder': appname,
485487
}
486-
putres = requests.put(url=protocol.upload_endpoint, data=content, headers=headers, verify=ctx['ssl_verify'], timeout=ctx['http_timeout'])
488+
putres = requests.put(url=protocol.upload_endpoint, data=content, headers=headers,
489+
verify=ctx['ssl_verify'], timeout=ctx['http_timeout'])
487490
except requests.exceptions.RequestException as e:
488491
log.error(f'msg="Exception when uploading file to Reva" reason="{e}"')
489492
raise IOError(e) from e

0 commit comments

Comments
 (0)