Remove unnecessary f.close()
Context manager automatically handles file closing. No need to use f.close() Change-Id: I26382136cef241908252258df813ecfbb56b5aef
This commit is contained in:
parent
dfac12405d
commit
39bd4a535e
@ -55,7 +55,6 @@ for fractal in data['objects']:
|
||||
for chunk in r.iter_content(chunk_size=1024):
|
||||
if chunk:
|
||||
f.write(chunk)
|
||||
f.close()
|
||||
conn.create_object(container=container_name, name=fractal['uuid'])
|
||||
|
||||
for object in conn.list_objects(container_name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user