Skip to content
Snippets Groups Projects
Commit 79efdfee authored by Christoph Groth's avatar Christoph Groth
Browse files

more unicode proofing

parent 0a86321c
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ def get_version_from_git():
def init(version_file='_kwant_version.py'):
global version, version_is_from_git
version_info = {}
with open(os.path.join(package_root, version_file), 'r') as f:
with open(os.path.join(package_root, version_file), 'rb') as f:
exec(f.read(), {}, version_info)
version = version_info['version']
version_is_from_git = (version == "__use_git__")
......
......@@ -364,7 +364,7 @@ def write_version(fname):
def long_description():
text = []
try:
with open('README.rst') as f:
with open('README.rst', encoding='utf8') as f:
for line in f:
if line.startswith('See also in this directory:'):
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment