[Python-checkins] cpython (merge 3.2 -> default): (Merge 3.2) Issue #13545: Fix platform.libc_version() is the SO version is

victor.stinner python-checkins at python.org
Thu Dec 15 21:40:40 CET 2011


http://hg.python.org/cpython/rev/a9ee21ac0879
changeset:   73986:a9ee21ac0879
parent:      73984:e979b26a9172
parent:      73985:5ec7ecf62c1d
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Thu Dec 15 21:42:28 2011 +0100
summary:
  (Merge 3.2) Issue #13545: Fix platform.libc_version() is the SO version is missing

files:
  Lib/platform.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/platform.py b/Lib/platform.py
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -186,7 +186,7 @@
         elif so:
             if lib != 'glibc':
                 lib = 'libc'
-                if soversion > version:
+                if soversion and soversion > version:
                     version = soversion
                 if threads and version[-len(threads):] != threads:
                     version = version + threads

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list