diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-15 20:42:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-15 20:42:28 (GMT) |
commit | 9c49036e70c19921da39ca3da8124e82d0a395d4 (patch) | |
tree | 0c23e850c03514fd75829d2e635eb0b0e8f7b99d /Lib/platform.py | |
parent | bfebb7b54a50f01104f7b6169de77f7fc8feb912 (diff) | |
parent | 87448819abd4900bcb36857c6706d8562c97a099 (diff) | |
download | cpython-9c49036e70c19921da39ca3da8124e82d0a395d4.zip cpython-9c49036e70c19921da39ca3da8124e82d0a395d4.tar.gz cpython-9c49036e70c19921da39ca3da8124e82d0a395d4.tar.bz2 |
(Merge 3.2) Issue #13545: Fix platform.libc_version() is the SO version is missing
Diffstat (limited to 'Lib/platform.py')
-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 a14639e..172722e 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -186,7 +186,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 |