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

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


http://hg.python.org/cpython/rev/5ec7ecf62c1d
changeset:   73985:5ec7ecf62c1d
branch:      3.2
parent:      73982:313fa7ea6c79
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Thu Dec 15 21:42:03 2011 +0100
summary:
  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
@@ -181,7 +181,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