Skip to content

Commit

Permalink
use io.open in setup.py for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Mar 10, 2019
1 parent d9f3d96 commit f021620
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 @@ -2,9 +2,10 @@
import versioneer

import os
import io

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(
Expand Down

0 comments on commit f021620

Please sign in to comment.