diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-15 20:42:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-15 20:42:03 (GMT) |
commit | 429a12b7b659c333cbe1a888edfb91f7c8abe1ed (patch) | |
tree | 4e3ac1d25fc9ee86a21e4567e145e49c1c4a62f4 /Lib | |
parent | 5b4b2da55dbc2a439235e8e969309c143320f4fc (diff) | |
download | cpython-429a12b7b659c333cbe1a888edfb91f7c8abe1ed.zip cpython-429a12b7b659c333cbe1a888edfb91f7c8abe1ed.tar.gz cpython-429a12b7b659c333cbe1a888edfb91f7c8abe1ed.tar.bz2 |
Issue #13545: Fix platform.libc_version() is the SO version is missing
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 |