commit | 8256242b30005b8a1b52e79149558ad36f1307d6 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Mar 05 21:09:22 2011 +0100 |
committer | Georg Brandl <georg@python.org> | Sat Mar 05 21:09:22 2011 +0100 |
tree | e02321f555790ceb1340b40da891b94556234064 | |
parent | 1ca2e7965c52525684bb517401c513158a8af989 [diff] [blame] |
Adapt platform and test_platform to the build identification changes.
diff --git a/Lib/platform.py b/Lib/platform.py index 7fba143..780301d 100755 --- a/Lib/platform.py +++ b/Lib/platform.py
@@ -1373,7 +1373,9 @@ name = 'CPython' builddate = builddate + ' ' + buildtime - if hasattr(sys, 'subversion'): + if hasattr(sys, '_mercurial'): + _, branch, revision = sys._mercurial + elif hasattr(sys, 'subversion'): # sys.subversion was added in Python 2.5 _, branch, revision = sys.subversion else: