mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Refactoring: Change Inf Loop Condition (1 -> True)
This commit is contained in:
parent
865cbf0bdf
commit
b602ddf901
@ -35,7 +35,7 @@ def is_binary(pathname):
|
||||
try:
|
||||
with open(pathname, 'r') as f:
|
||||
CHUNKSIZE = 1024
|
||||
while 1:
|
||||
while True:
|
||||
chunk = f.read(CHUNKSIZE)
|
||||
if '\0' in chunk: # found null byte
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user