summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-15 20:42:03 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-15 20:42:03 (GMT)
commit87448819abd4900bcb36857c6706d8562c97a099 (patch)
treef122dc76d0f768c50b09165e011e60177b4171b6 /Lib/platform.py
parent7158e0621280544165494100a0e04202032926bf (diff)
downloadcpython-87448819abd4900bcb36857c6706d8562c97a099.zip
cpython-87448819abd4900bcb36857c6706d8562c97a099.tar.gz
cpython-87448819abd4900bcb36857c6706d8562c97a099.tar.bz2
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 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