Skip to content

Commit 0e6c7a4

Browse files
dmitrii-zagornyiGitHub Enterprise
authored andcommitted
Merge pull request #7 from SAT/feature/tc/fix_io_open
Fix for open in setup.py for py27
2 parents fca8829 + 19cddb3 commit 0e6c7a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mkl-service/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727

2828
from os.path import join, exists, dirname
29-
from io import open
3029

3130

3231
def configuration(parent_package='', top_path=None):

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626

2727

2828
from __future__ import division, print_function, absolute_import
29+
import io
2930
import re
3031

3132

32-
with open('mkl-service/__init__.py', 'rt', encoding='utf8') as file:
33+
with io.open('mkl-service/__init__.py', 'rt', encoding='utf8') as file:
3334
VERSION = re.search(r'__version__ = \'(.*?)\'', file.read()).group(1)
3435

3536

0 commit comments

Comments
 (0)