We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce92d3f commit deb990dCopy full SHA for deb990d
pyexcel_echarts/echarts.py
@@ -1,5 +1,6 @@
1
import tempfile
2
3
+from pyexcel._compact import PY2
4
from pyexcel.renderer import Renderer
5
from pyexcel_echarts.options import MANAGER
6
@@ -28,4 +29,7 @@ def _write_content(self, instance):
28
29
with tempfile.NamedTemporaryFile(suffix=".html") as fout:
30
instance.render(path=fout.name)
31
fout.seek(0)
- self._stream.write(fout.read())
32
+ if PY2:
33
+ self._stream.write(fout.read())
34
+ else:
35
+ self._stream.write(fout.read().decode('utf-8'))
0 commit comments