commit | 429a12b7b659c333cbe1a888edfb91f7c8abe1ed | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Dec 15 21:42:03 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Dec 15 21:42:03 2011 +0100 |
tree | 4e3ac1d25fc9ee86a21e4567e145e49c1c4a62f4 | |
parent | 5b4b2da55dbc2a439235e8e969309c143320f4fc [diff] |
Issue #13545: Fix platform.libc_version() is the SO version is missing
diff --git a/Lib/platform.py b/Lib/platform.py index 710f21e..20f8dc6 100755 --- a/Lib/platform.py +++ b/Lib/platform.py
@@ -183,7 +183,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