Commit d4a910f9 by willmcgugan

Fixed writecontents for files that don't have a flush method

parent 09b34494
......@@ -570,7 +570,8 @@ class FS(object):
chunk = data.read(1024*512)
else:
f.write(data)
f.flush()
if hasattr(f, 'flush'):
f.flush()
finally:
if f is not None:
f.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment