From: Victor Stinner Date: Thu, 15 Dec 2011 20:42:03 +0000 (+0100) Subject: Issue #13545: Fix platform.libc_version() is the SO version is missing X-Git-Tag: v2.7.3rc1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=429a12b7b659c333cbe1a888edfb91f7c8abe1ed;p=thirdparty%2FPython%2Fcpython.git Issue #13545: Fix platform.libc_version() is the SO version is missing --- diff --git a/Lib/platform.py b/Lib/platform.py index 710f21e706c0..20f8dc6e7a1b 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -183,7 +183,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