From 88831f8398fb80c35fea524fe98598d2e894fadf Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 19 Feb 2013 22:11:21 +0000 Subject: [PATCH] Fix Py2 TypeError in GEDCOM export Due to writing regular strings instead of unicode strings. svn: r21378 --- gramps/plugins/export/exportgedcom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/export/exportgedcom.py b/gramps/plugins/export/exportgedcom.py index 5af52f266..f43822af2 100644 --- a/gramps/plugins/export/exportgedcom.py +++ b/gramps/plugins/export/exportgedcom.py @@ -269,15 +269,15 @@ class GedcomWriter(UpdateCallback): # make it unicode so that breakup below does the right thin. text = cuni(text) if limit: - prefix = "\n%d CONC " % (level + 1) + prefix = cuni("\n%d CONC " % (level + 1)) txt = prefix.join(breakup(text, limit)) else: txt = text - self.gedcom_file.write("%d %s %s\n" % (token_level, token, txt)) + self.gedcom_file.write(cuni("%d %s %s\n" % (token_level, token, txt))) token_level = level + 1 token = "CONT" else: - self.gedcom_file.write("%d %s\n" % (level, token)) + self.gedcom_file.write(cuni("%d %s\n" % (level, token))) def _header(self, filename): """