From 87448819abd4900bcb36857c6706d8562c97a099 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 15 Dec 2011 21:42:03 +0100 Subject: Issue #13545: Fix platform.libc_version() is the SO version is missing --- Lib/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py index 6e301da..e04bcb4 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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 -- cgit v0.12