From b602ddf90147fa6beb13c5d611cf76d113351f93 Mon Sep 17 00:00:00 2001 From: marload Date: Mon, 6 Jul 2020 21:15:03 +0900 Subject: [PATCH] Refactoring: Change Inf Loop Condition (1 -> True) --- hack/verify-flags-underscore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-flags-underscore.py b/hack/verify-flags-underscore.py index 169f7944932..e6d891da9c2 100755 --- a/hack/verify-flags-underscore.py +++ b/hack/verify-flags-underscore.py @@ -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