# HG changeset patch # User Martin Geisler # Date 2009-05-26 19:07:41 # Node ID 4c5b46f736f17d21a356c37216213b09a9449064 # Parent 1fc1c77d4863ea135cc4b62a3319931fd95661b3 setup: renamed l, e vars to out, err diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -108,15 +108,15 @@ if os.path.isdir('.hg'): os.environ['HGRCPATH'] = '' # do not read any config file cmd = [sys.executable, 'hg', 'id', '-i', '-t'] - l, e = subprocess.Popen(cmd, stdout=subprocess.PIPE, - stderr=subprocess.PIPE).communicate() + out, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, + stderr=subprocess.PIPE).communicate() os.environ['PYTHONPATH'] = pypath - if e: + if err: sys.stderr.write('warning: could not establish Mercurial ' - 'version:\n%s\n' % e) + 'version:\n%s\n' % err) else: - l = l.split() + l = out.split() while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags l.pop() if l: