diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-02 18:45:29 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-02 18:45:29 +0100 |
commit | 19f87b14f83669fd450e032e35d5b328b9acc118 (patch) | |
tree | e4033ef79ee1c30dc0df62cade4985a2350a2b0b /psutil/_psposix.py | |
parent | 1cff4c060559242beb908f0f53e8d511964c47f7 (diff) | |
download | psutil-19f87b14f83669fd450e032e35d5b328b9acc118.tar.gz |
move custom exceptions in _common.py
Diffstat (limited to 'psutil/_psposix.py')
-rw-r--r-- | psutil/_psposix.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/psutil/_psposix.py b/psutil/_psposix.py index 24570224..88213ef8 100644 --- a/psutil/_psposix.py +++ b/psutil/_psposix.py @@ -11,6 +11,7 @@ import time from ._common import memoize from ._common import sdiskusage +from ._common import TimeoutExpired from ._common import usage_percent from ._compat import ChildProcessError from ._compat import FileNotFoundError @@ -24,11 +25,6 @@ from ._compat import unicode __all__ = ['pid_exists', 'wait_pid', 'disk_usage', 'get_terminal_map'] -# This object gets set on "import psutil" from the __init__.py -# file, see: https://github.com/giampaolo/psutil/issues/1402 -TimeoutExpired = None - - def pid_exists(pid): """Check whether pid exists in the current process table.""" if pid == 0: |