From ef762645e3ebf9605388425e25941ed78c46e334 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 13 Dec 2015 11:29:24 -0500 Subject: [PATCH] 8556: ValueError: underlying buffer has been detached (from Paul's patch) --- gramps/plugins/export/exportxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/export/exportxml.py b/gramps/plugins/export/exportxml.py index 01451d589..6c8b1d093 100644 --- a/gramps/plugins/export/exportxml.py +++ b/gramps/plugins/export/exportxml.py @@ -126,7 +126,7 @@ class GrampsXmlWriter(UpdateCallback): """ if filename == '-': import sys - g = sys.stdout + g = sys.stdout.buffer self.compress = False else: base = os.path.dirname(filename)