Skip to content

Commit

Permalink
Strip newlines when reading version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dejan Knezevic committed Oct 31, 2019
1 parent e1a359b commit 0da4e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
version = '0.0.1+local-build'
if os.path.isfile(version_path):
with io.open(version_path, 'r', encoding='utf-8') as f:
version = f.read()
version = f.read().strip()

install_requires = ["requests>=2.20.0", "six>=1.10.0"]
if sys.version_info < (3,):
Expand Down
2 changes: 1 addition & 1 deletion sevenbridges/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
__version__ = '0.0.1+local-build'
if os.path.isfile(version_path):
with io.open(version_path, 'r', encoding='utf-8') as f:
__version__ = f.read()
__version__ = f.read().strip()


from sevenbridges.api import Api
Expand Down

0 comments on commit 0da4e93

Please sign in to comment.