diff options
| author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2017-11-14 14:50:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-14 14:50:50 +0100 |
| commit | 28fa98fcdfd647830b1c31ace0d0876c6ed8f73a (patch) | |
| tree | dcf66280fcdaf3f22a385b15fce935b1d5375ab6 | |
| parent | 46df188a54e3eb2b0dfb93dbae59fb23249fbcce (diff) | |
| download | setuptools-scm-RonnyPfannschmidt-patch-hg-flake8.tar.gz | |
fix flake8 issuesRonnyPfannschmidt-patch-hg-flake8
| -rw-r--r-- | setuptools_scm/hg.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools_scm/hg.py b/setuptools_scm/hg.py index cda5fc3..9322fb3 100644 --- a/setuptools_scm/hg.py +++ b/setuptools_scm/hg.py @@ -25,11 +25,11 @@ def _hg_tagdist_normalize_tagcommit(root, tag, dist, node): def parse(root): if not has_command('hg'): return - l = do('hg id -i -t', root).split() - if not l: + identity_data = do('hg id -i -t', root).split() + if not identity_data: return - node = l.pop(0) - tags = tags_to_versions(l) + node = identity_data.pop(0) + tags = tags_to_versions(identity_data) # filter tip in degraded mode on old setuptools tags = [x for x in tags if x != 'tip'] dirty = node[-1] == '+' |
