setup: renamed l, e vars to out, err
authorMartin Geisler <mg@lazybytes.net>
Tue, 26 May 2009 21:07:41 +0200
changeset 8627 4c5b46f736f1
parent 8626 1fc1c77d4863
child 8628 4dd06ab9217c
setup: renamed l, e vars to out, err
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: