# HG changeset patch # User Martin Geisler # Date 1243364861 -7200 # Node ID 4c5b46f736f17d21a356c37216213b09a9449064 # Parent 1fc1c77d4863ea135cc4b62a3319931fd95661b3 setup: renamed l, e vars to out, err diff -r 1fc1c77d4863 -r 4c5b46f736f1 setup.py --- a/setup.py Tue May 26 20:12:37 2009 +0200 +++ b/setup.py Tue May 26 21:07:41 2009 +0200 @@ -108,15 +108,15 @@ 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: