Mercurial > hg
comparison setup.py @ 8549:9f85da260508
setup: add missing newline in warning
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sat, 23 May 2009 00:24:00 +0200 |
parents | 3ccbe42ff72f |
children | cbd3a104637f |
comparison
equal
deleted
inserted
replaced
8548:3ccbe42ff72f | 8549:9f85da260508 |
---|---|
111 l, e = subprocess.Popen(cmd, stdout=subprocess.PIPE, | 111 l, e = subprocess.Popen(cmd, stdout=subprocess.PIPE, |
112 stderr=subprocess.PIPE).communicate() | 112 stderr=subprocess.PIPE).communicate() |
113 os.environ['PYTHONPATH'] = pypath | 113 os.environ['PYTHONPATH'] = pypath |
114 | 114 |
115 if e: | 115 if e: |
116 sys.stderr.write('warning: could not establish Mercurial version: %s' | 116 sys.stderr.write('warning: could not establish Mercurial ' |
117 % e) | 117 'version: %s\n' % e) |
118 else: | 118 else: |
119 l = l.split() | 119 l = l.split() |
120 while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags | 120 while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags |
121 l.pop() | 121 l.pop() |
122 if l: | 122 if l: |