diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index 5b5b967897b..3561825151e 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -2808,7 +2808,7 @@ def get_random_opts(): if choice not in requires_closed_world] # core opts - while 1: + while True: choice = random.choice(usable_opt_choices) if '--flatten' in choice or '-O4' in choice: if has_flatten: diff --git a/scripts/fuzz_passes.py b/scripts/fuzz_passes.py index c2c7910a8dd..2cc12d0c6de 100755 --- a/scripts/fuzz_passes.py +++ b/scripts/fuzz_passes.py @@ -117,7 +117,7 @@ def simplify(passes): def pick_passes(): ret = [] - while 1: + while True: str_ret = str(ret) if random.random() < 0.1 and str_ret not in tested: tested.add(str_ret) @@ -126,7 +126,7 @@ def pick_passes(): counter = 0 - while 1: + while True: passes = pick_passes() print('>>> [' + str(counter) + '] testing:', ' '.join(passes)) counter += 1 diff --git a/scripts/fuzz_passes_wast.py b/scripts/fuzz_passes_wast.py index 97f29a7b415..97eb8e26336 100755 --- a/scripts/fuzz_passes_wast.py +++ b/scripts/fuzz_passes_wast.py @@ -108,7 +108,7 @@ def simplify(passes): def pick_passes(): # return '--waka'.split(' ') ret = [] - while 1: + while True: str_ret = str(ret) if random.random() < 0.5 and str_ret not in tested: tested.add(str_ret) @@ -117,7 +117,7 @@ def pick_passes(): counter = 0 - while 1: + while True: passes = pick_passes() print('>>> [' + str(counter) + '] testing:', ' '.join(passes)) counter += 1 diff --git a/scripts/test/support.py b/scripts/test/support.py index 6d06999e944..687d67a3cae 100644 --- a/scripts/test/support.py +++ b/scripts/test/support.py @@ -46,7 +46,7 @@ def to_end(j): depth = 1 while depth > 0 and j < len(wast): if wast[j] == '"': - while 1: + while True: j = wast.find('"', j + 1) if wast[j - 1] == '\\': continue