Skip to content

Commit

Permalink
fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Jan 13, 2017
1 parent be65ee8 commit cc1359e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ def read(f):
def read_version():
regexp = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'")
init_py = os.path.join(os.path.dirname(__file__),
'aiohttp_admin', '__init__.py')
'aiohttp_sse', '__init__.py')
with open(init_py) as f:
for line in f:
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
msg = 'Cannot find version in aiohttp_admin/__init__.py'
msg = 'Cannot find version in aiohttp_sse/__init__.py'
raise RuntimeError(msg)


Expand Down

0 comments on commit cc1359e

Please sign in to comment.