forked from Mirror/pmbootstrap
treewide: adopt pathlib.Path and type hinting (MR 2252)
With the new chroot type, we can now write fancy paths in the pythonic way. Convert most of the codebase over, as well as adding various other type hints. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
00383bf354
commit
31cc898dd5
64 changed files with 513 additions and 385 deletions
|
@ -133,7 +133,7 @@ def is_running(args: PmbArgs, programs, timeout=300, sleep_before_retry=1):
|
|||
ssh_works = False
|
||||
|
||||
end = time.monotonic() + timeout
|
||||
last_try = 0
|
||||
last_try = 0.0
|
||||
|
||||
while last_try < end:
|
||||
# Sleep only when last try exited immediately
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue