Skip to content

Commit 5350293

Browse files
committed
Fix mathml doctests
Fixes sympy#8434.
1 parent 1b6979c commit 5350293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sympy/utilities/pkgdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_resource(identifier, pkgname=__name__):
3131
3232
For example::
3333
34-
mydata = get_esource('mypkgdata.jpg').read()
34+
mydata = get_resource('mypkgdata.jpg').read()
3535
3636
Note that the package name must be fully qualified, if given, such
3737
that it would be found in sys.modules.
@@ -54,5 +54,5 @@ def get_resource(identifier, pkgname=__name__):
5454
except (IOError,AttributeError):
5555
pass
5656
else:
57-
return StringIO(data)
57+
return StringIO(data.decode('utf-8'))
5858
return open(os.path.normpath(path), 'rb')

0 commit comments

Comments
 (0)