DbLoader: Fix call to 'file' function, which doesn't exist in Python3 (#1173)
This commit is contained in:
parent
226e8c549a
commit
14c2d0e1b6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user