Skip to content

Commit c797a7e

Browse files
alexpantyukhinasvetlov
authored andcommitted
fix setup to read version on windows. (#275)
1 parent 93f9616 commit c797a7e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import codecs
21
from setuptools import setup
32
import os
43
import re
54

65

7-
with codecs.open(os.path.join(os.path.abspath(os.path.dirname(
8-
__file__)), 'aiohttp_session', '__init__.py'), 'r', 'latin1') as fp:
6+
with open(os.path.join(os.path.abspath(os.path.dirname(
7+
__file__)), 'aiohttp_session', '__init__.py'), 'r', encoding='latin1') as fp:
98
try:
109
version = re.findall(r"^__version__ = '([^']+)'$", fp.read(), re.M)[0]
1110
except IndexError:

0 commit comments

Comments
 (0)