summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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