Skip to content

Commit c0338a0

Browse files
author
ravi
committed
python2.7 support issue fixed in openfile used io module in setup
1 parent 174e157 commit c0338a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import io
12
import os
23
from setuptools import setup, find_packages
34

45
VERSION = '0.2.2'
56

6-
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8', errors='ignore') as readme:
7+
with io.open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8', errors='ignore') as readme:
78
LONG_DESCRIPTION = readme.read()
89

910

0 commit comments

Comments
 (0)