python: replace "while 1" with "while True"

This makes pyright recognize that the function never returns implicitly.
This commit is contained in:
link2xt
2023-02-18 11:31:07 +00:00
parent 7586bcf45e
commit 48fee4fc92
4 changed files with 14 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ class ConfigureTracker:
self._imap_finished.wait()
def wait_progress(self, data1=None):
while 1:
while True:
evdata = self._progress.get()
if data1 is None or evdata == data1:
break