From 42d8a9551275bdfb00f4313faa7189ae394508ff Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 24 Mar 2013 15:48:58 +0000 Subject: [PATCH] modify (semi-revert) 21728/21729 open=>io.open change, for Windows svn: r21731 --- gramps/gen/plug/_pluginreg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gen/plug/_pluginreg.py b/gramps/gen/plug/_pluginreg.py index f94934d89..d1e73c4a7 100644 --- a/gramps/gen/plug/_pluginreg.py +++ b/gramps/gen/plug/_pluginreg.py @@ -1083,7 +1083,9 @@ class PluginRegister(object): full_filename = os.path.join(dir, filename) if sys.version_info[0] < 3: full_filename = full_filename.encode(glocale.getfilesystemencoding()) - fd = io.open(full_filename, 'r', encoding = 'utf-8') + fd = io.open(full_filename, 'r') + else: + fd = io.open(full_filename, 'r', encoding = 'utf-8') stream = fd.read() fd.close() if os.path.exists(os.path.join(os.path.dirname(full_filename),