diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2014-11-08 13:37:52 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2014-11-08 13:37:52 +0100 |
commit | 6df640741231d65fa7ce3d4d075abbd9cfc61bea (patch) | |
tree | b6b74555bc73bfc39cfd215440d409a02f4ae783 /psutil/_psposix.py | |
parent | 02fc64ce02abd43d82ac82088ec2d5ca02884373 (diff) | |
download | psutil-6df640741231d65fa7ce3d4d075abbd9cfc61bea.tar.gz |
some refactoring
Diffstat (limited to 'psutil/_psposix.py')
-rw-r--r-- | psutil/_psposix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psposix.py b/psutil/_psposix.py index 280cdeeb..94db351e 100644 --- a/psutil/_psposix.py +++ b/psutil/_psposix.py @@ -74,7 +74,7 @@ def wait_pid(pid, timeout=None): waitcall = lambda: os.waitpid(pid, 0) delay = 0.0001 - while 1: + while True: try: retpid, status = waitcall() except OSError as err: @@ -88,7 +88,7 @@ def wait_pid(pid, timeout=None): # - pid never existed in the first place # In both cases we'll eventually return None as we # can't determine its exit status code. - while 1: + while True: if pid_exists(pid): delay = check_timeout(delay) else: |