open ==> io.open

This commit is contained in:
Josip 2014-04-04 21:54:43 +02:00
parent b240c31631
commit f607cc98ae

View File

@ -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("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n")