Skip to content

Commit 83add5d

Browse files
committed
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.
1 parent 4e76d78 commit 83add5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
210210
binary = f.read(chunksize)
211211
pos = 0
212212
while pos < len(binary):
213-
if b'libc' in binary or b'GLIBC' or 'musl' in binary:
213+
if b'libc' in binary or b'GLIBC' in binary or b'musl' in binary:
214214
m = libc_search.search(binary, pos)
215215
else:
216216
m = None

0 commit comments

Comments
 (0)