DbLoader: Fix call to 'file' function, which doesn't exist in Python3 (#1173)

This commit is contained in:
Paul Culley
2021-02-19 11:23:47 -06:00
committed by GitHub
parent 226e8c549a
commit 14c2d0e1b6

View File

@@ -532,7 +532,7 @@ class GrampsImportFileDialog(ManagedWindow):
return True return True
else: else:
try: try:
f = file(filename,'w') f = open(filename, 'w')
f.close() f.close()
os.remove(filename) os.remove(filename)
except IOError: except IOError: