_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:
Brian Warner 2018-01-02 08:19:08 +01:00
parent 624072c111
commit c6fbaf5a4d

View File

@ -495,7 +495,7 @@ def get_versions():
# versionfile_source is the relative path from the top of the source
# tree (where the .git directory might live) to this file. Invert
# 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)
except NameError:
return {"version": "0+unknown", "full-revisionid": None,