Fixed useless `else` cluase after loop inside `get_version` function in setup.py

This commit is contained in:
Avinash Karhana 2020-07-11 02:15:29 +05:30
parent 15b7afbcad
commit 135e9c1369
2 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ def get_version(rel_path):
# __version__ = "0.9" # __version__ = "0.9"
delim = '"' if '"' in line else "'" delim = '"' if '"' in line else "'"
return line.split(delim)[1] return line.split(delim)[1]
else: raise RuntimeError("Unable to find version string.")
raise RuntimeError("Unable to find version string.")
long_description = read('README.rst') long_description = read('README.rst')