Skip to content

Commit b602ddf

Browse files
committed
Refactoring: Change Inf Loop Condition (1 -> True)
1 parent 865cbf0 commit b602ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/verify-flags-underscore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def is_binary(pathname):
3535
try:
3636
with open(pathname, 'r') as f:
3737
CHUNKSIZE = 1024
38-
while 1:
38+
while True:
3939
chunk = f.read(CHUNKSIZE)
4040
if '\0' in chunk: # found null byte
4141
return True

0 commit comments

Comments
 (0)