Skip to content

Commit

Permalink
Fix mathml doctests
Browse files Browse the repository at this point in the history
Fixes sympy#8434.
  • Loading branch information
asmeurer committed Nov 13, 2014
1 parent 1b6979c commit 5350293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sympy/utilities/pkgdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_resource(identifier, pkgname=__name__):
For example::
mydata = get_esource('mypkgdata.jpg').read()
mydata = get_resource('mypkgdata.jpg').read()
Note that the package name must be fully qualified, if given, such
that it would be found in sys.modules.
Expand All @@ -54,5 +54,5 @@ def get_resource(identifier, pkgname=__name__):
except (IOError,AttributeError):
pass
else:
return StringIO(data)
return StringIO(data.decode('utf-8'))
return open(os.path.normpath(path), 'rb')

0 comments on commit 5350293

Please sign in to comment.