(Merge 3.2) Issue #13545: Fix platform.libc_version() is the SO version is missing

This commit is contained in:
Victor Stinner 2011-12-15 21:42:28 +01:00
commit 9c49036e70
1 changed files with 1 additions and 1 deletions

View File

@ -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