From 0617629e9dcde1a435f802e8021bf10fbe5abcd9 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 15 Jul 2013 18:38:11 +0000 Subject: [PATCH] 6922: Export gpkg crashes in svn 22654M svn: r22682 --- gramps/plugins/export/exportpkg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/export/exportpkg.py b/gramps/plugins/export/exportpkg.py index 15531e528..5168a9945 100644 --- a/gramps/plugins/export/exportpkg.py +++ b/gramps/plugins/export/exportpkg.py @@ -39,7 +39,7 @@ import tarfile if sys.version_info[0] < 3: from cStringIO import StringIO else: - from io import StringIO + from io import StringIO, BytesIO from gramps.gen.const import GRAMPS_LOCALE as glocale _ = glocale.translation.gettext @@ -218,7 +218,7 @@ class PackageWriter(object): if sys.version_info[0] < 3: g = StringIO() else: - g = io.BytesIO() + g = BytesIO() gfile = XmlWriter(self.db, self.user, 2) gfile.write_handle(g) tarinfo = tarfile.TarInfo('data.gramps')