]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #13545: Fix platform.libc_version() is the SO version is missing
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 15 Dec 2011 20:42:03 +0000 (21:42 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 15 Dec 2011 20:42:03 +0000 (21:42 +0100)
Lib/platform.py

index 6e301da0e17960fd16e666c16ad80ba51e4a49c7..e04bcb4ef6338a1d42b7c79f0c37efd86f8e551f 100755 (executable)
@@ -181,7 +181,7 @@ def libc_ver(executable=sys.executable,lib='',version='',
         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