mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +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:
|
try:
|
||||||
with open(pathname, 'r') as f:
|
with open(pathname, 'r') as f:
|
||||||
CHUNKSIZE = 1024
|
CHUNKSIZE = 1024
|
||||||
while 1:
|
while True:
|
||||||
chunk = f.read(CHUNKSIZE)
|
chunk = f.read(CHUNKSIZE)
|
||||||
if '\0' in chunk: # found null byte
|
if '\0' in chunk: # found null byte
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user