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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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