From c2a6e0e5d77689b3b03e7b451f017646ea9e629a Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 19 Feb 2013 22:06:11 +0000 Subject: [PATCH] Fix Py2 TypeError in GEDCOM export Due to writing regular strings instead of unicode strings. svn: r21375 --- 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 5ecba9c19..156f9f4f6 100644 --- a/gramps/plugins/export/exportgedcom.py +++ b/gramps/plugins/export/exportgedcom.py @@ -271,15 +271,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): """