Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: Changeset: r65165:140cb204a130 Date: 2013-07-02 15:11 +0200 http://bitbucket.org/pypy/pypy/changeset/140cb204a130/
Log: Use re.search() to find MSVC compiler version. This will handle the Chinese translation of the compiler. diff --git a/rpython/translator/platform/windows.py b/rpython/translator/platform/windows.py --- a/rpython/translator/platform/windows.py +++ b/rpython/translator/platform/windows.py @@ -119,7 +119,7 @@ # detect version of current compiler returncode, stdout, stderr = _run_subprocess(self.cc, '', env=self.c_environ) - r = re.match(r'Microsoft.+C/C\+\+.+\s([0-9]+)\.([0-9]+).*', stderr) + r = re.search(r'Microsoft.+C/C\+\+.+\s([0-9]+)\.([0-9]+).*', stderr) if r is not None: self.version = int(''.join(r.groups())) / 10 - 60 else: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit