Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Fix 'in' phrase logic.
This didn't cause a test failure because the broken logic caused the
regex to always run...which is a lot slower.
  • Loading branch information
bitdancer committed Mar 18, 2025
commit 83add5d6fc37d4b6a981d497f6a5783997257913
2 changes: 1 addition & 1 deletion Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
binary = f.read(chunksize)
pos = 0
while pos < len(binary):
if b'libc' in binary or b'GLIBC' or 'musl' in binary:
if b'libc' in binary or b'GLIBC' in binary or b'musl' in binary:
m = libc_search.search(binary, pos)
else:
m = None
Expand Down