diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-02-07 05:23:27 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-02-07 05:23:27 +0100 |
commit | 2c81d1e838ee63e89de411c2d908d06e6058ba8f (patch) | |
tree | d2232bafb26095d9add7f7d4e5c9fca18fb84f07 /psutil/_psposix.py | |
parent | 97ecaf5877ea6d2599225ab2a76675b8b9edbfc9 (diff) | |
download | psutil-2c81d1e838ee63e89de411c2d908d06e6058ba8f.tar.gz |
fix flake8 complaints
Diffstat (limited to 'psutil/_psposix.py')
-rw-r--r-- | psutil/_psposix.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/psutil/_psposix.py b/psutil/_psposix.py index 94db351e..1f7dc96e 100644 --- a/psutil/_psposix.py +++ b/psutil/_psposix.py @@ -68,10 +68,12 @@ def wait_pid(pid, timeout=None): timer = getattr(time, 'monotonic', time.time) if timeout is not None: - waitcall = lambda: os.waitpid(pid, os.WNOHANG) + def waitcall(): + return os.waitpid(pid, os.WNOHANG) stop_at = timer() + timeout else: - waitcall = lambda: os.waitpid(pid, 0) + def waitcall(): + return os.waitpid(pid, 0) delay = 0.0001 while True: |