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 1b6979c commit 5350293Copy full SHA for 5350293
sympy/utilities/pkgdata.py
@@ -31,7 +31,7 @@ def get_resource(identifier, pkgname=__name__):
31
32
For example::
33
34
- mydata = get_esource('mypkgdata.jpg').read()
+ mydata = get_resource('mypkgdata.jpg').read()
35
36
Note that the package name must be fully qualified, if given, such
37
that it would be found in sys.modules.
@@ -54,5 +54,5 @@ def get_resource(identifier, pkgname=__name__):
54
except (IOError,AttributeError):
55
pass
56
else:
57
- return StringIO(data)
+ return StringIO(data.decode('utf-8'))
58
return open(os.path.normpath(path), 'rb')
0 commit comments