PyQIODevice: Remove unneeded check.

This commit is contained in:
Florian Bruhin 2015-05-26 07:52:41 +02:00
parent 48de8b145b
commit 6a26bc23ab

View File

@ -195,8 +195,7 @@ def savefile_open(filename, binary=False, encoding='utf-8'):
cancelled = True
raise
else:
if new_f is not None:
new_f.flush()
new_f.flush()
finally:
commit_ok = f.commit()
if not commit_ok and not cancelled: