This commit is contained in:
mzwiessele 2015-10-07 13:27:38 +01:00
parent 0e1816da44
commit dc37c8ca23

View file

@ -44,11 +44,11 @@ import numpy as np
def read(fname):
try:
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return unicode(f.read())
return unicode(f.read(), 'utf-8')
except NameError:
#python 3
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return (f.read())
return unicode(f.read(), 'utf-8')
def read_to_rst(fname):
try: