From 14c2d0e1b61a7c6a719b2c7c567063c119b5b0b4 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Fri, 19 Feb 2021 11:23:47 -0600 Subject: [PATCH] DbLoader: Fix call to 'file' function, which doesn't exist in Python3 (#1173) --- gramps/gui/dbloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/dbloader.py b/gramps/gui/dbloader.py index 5edcae3ab..ddfd5411e 100644 --- a/gramps/gui/dbloader.py +++ b/gramps/gui/dbloader.py @@ -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: