6922: Export gpkg crashes in svn 22654M
svn: r22681
This commit is contained in:
parent
66b9e798ed
commit
b5c3cf70ea
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user