summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-15 20:42:28 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-15 20:42:28 (GMT)
commit9c49036e70c19921da39ca3da8124e82d0a395d4 (patch)
tree0c23e850c03514fd75829d2e635eb0b0e8f7b99d /Lib/platform.py
parentbfebb7b54a50f01104f7b6169de77f7fc8feb912 (diff)
parent87448819abd4900bcb36857c6706d8562c97a099 (diff)
downloadcpython-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-xLib/platform.py2
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