Refactoring: Change Inf Loop Condition (1 -> True)

This commit is contained in:
marload 2020-07-06 21:15:03 +09:00
parent 865cbf0bdf
commit b602ddf901

View File

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