diff --git a/Lib/platform.py b/Lib/platform.py index 6e301da0e17960..e04bcb4ef6338a 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