From f607cc98ae630a049b4de0df1d54c840d136a283 Mon Sep 17 00:00:00 2001 From: Josip Date: Fri, 4 Apr 2014 21:54:43 +0200 Subject: [PATCH] open ==> io.open --- gramps/gen/recentfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/recentfiles.py b/gramps/gen/recentfiles.py index 346bbbc5e..f3c790cee 100644 --- a/gramps/gen/recentfiles.py +++ b/gramps/gen/recentfiles.py @@ -184,7 +184,7 @@ class RecentFiles(object): """ Saves the current GRAMPS RecentFiles collection to the associated file. """ - with open(os.path.expanduser(GRAMPS_FILENAME), 'w', encoding='utf8') as xml_file: + with io.open(os.path.expanduser(GRAMPS_FILENAME), 'w', encoding='utf8') as xml_file: if use_lock: fcntl.lockf(xml_file,fcntl.LOCK_EX) xml_file.write("\n")