_version.py: hush lgtm.com alert
This needs to be upstreamed into Versioneer, as it will disappear the next time we upgrade.
This commit is contained in:
parent
ecf3edb3f7
commit
b3100344eb
|
@ -495,7 +495,7 @@ def get_versions():
|
||||||
# versionfile_source is the relative path from the top of the source
|
# versionfile_source is the relative path from the top of the source
|
||||||
# tree (where the .git directory might live) to this file. Invert
|
# tree (where the .git directory might live) to this file. Invert
|
||||||
# this to find the root from __file__.
|
# this to find the root from __file__.
|
||||||
for i in cfg.versionfile_source.split('/'):
|
for _ in cfg.versionfile_source.split('/'):
|
||||||
root = os.path.dirname(root)
|
root = os.path.dirname(root)
|
||||||
except NameError:
|
except NameError:
|
||||||
return {"version": "0+unknown", "full-revisionid": None,
|
return {"version": "0+unknown", "full-revisionid": None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user