Skip to content

Commit

Permalink
Merge pull request #792 from ssandfeld/master
Browse files Browse the repository at this point in the history
add fix for str conversion from bad bytes array
  • Loading branch information
prabhuramachandran committed Jun 19, 2019
2 parents e2569be + e8f7088 commit 74b0f8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mayavi/tools/notebook.py
Expand Up @@ -82,7 +82,8 @@ def _fix_x3d_header(x3d):
if _height is not None:
rep += 'height="%dpx" ' % _height
rep += '>'

if isinstance(x3d, bytes):
x3d = x3d.decode("utf-8", "ignore")
x3d = x3d.replace(
'<X3D profile="Immersive" version="3.0">',
rep
Expand Down

0 comments on commit 74b0f8e

Please sign in to comment.