mirror of https://github.com/pypa/pip
Fixed useless `else` cluase after loop inside `get_version` function in setup.py
This commit is contained in:
parent
15b7afbcad
commit
135e9c1369
3
setup.py
3
setup.py
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue