setup.py
changeset 8627 4c5b46f736f1
parent 8550 cbd3a104637f
child 8628 4dd06ab9217c
--- 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: