Skip to content

Commit

Permalink
fix(setup.py): lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Dec 8, 2016
1 parent 0b2f1be commit 44037cd
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 @@ -24,7 +24,8 @@


def read_version(package):
with open(os.path.join(package, '__init__.py'), 'r', encoding='UTF-8') as fd:
init_path = os.path.join(package, '__init__.py')
with open(init_path, 'r', encoding='UTF-8') as fd:
for line in fd:
if line.startswith('__version__ = '):
return line.split()[-1].strip().strip("'")
Expand Down

0 comments on commit 44037cd

Please sign in to comment.