Mercurial > hg-stable
changeset 8627:4c5b46f736f1
setup: renamed l, e vars to out, err
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Tue, 26 May 2009 21:07:41 +0200 |
parents | 1fc1c77d4863 |
children | 4dd06ab9217c |
files | setup.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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: