Skip to content

Commit

Permalink
[package] fix UnicodeDecodeError when reading about.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Nov 29, 2019
1 parent 61fbde1 commit 09ded9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
root_dir = os.path.abspath(os.path.dirname(__file__))

about = {}
with open("src/aioquic/about.py") as fp:
about_file = os.path.join(root_dir, "src", "aioquic", "about.py")
with open(about_file, encoding="utf-8") as fp:
exec(fp.read(), about)

readme_file = os.path.join(root_dir, "README.rst")
Expand Down

0 comments on commit 09ded9a

Please sign in to comment.