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/_psosx.py | |
parent | 1cff4c060559242beb908f0f53e8d511964c47f7 (diff) | |
download | psutil-19f87b14f83669fd450e032e35d5b328b9acc118.tar.gz |
move custom exceptions in _common.py
Diffstat (limited to 'psutil/_psosx.py')
-rw-r--r-- | psutil/_psosx.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/psutil/_psosx.py b/psutil/_psosx.py index 7f28447b..e4296495 100644 --- a/psutil/_psosx.py +++ b/psutil/_psosx.py @@ -14,14 +14,17 @@ from . import _common from . import _psposix from . import _psutil_osx as cext from . import _psutil_posix as cext_posix +from ._common import AccessDenied from ._common import conn_tmap from ._common import conn_to_ntuple from ._common import isfile_strict from ._common import memoize_when_activated +from ._common import NoSuchProcess from ._common import parse_environ_block +from ._common import usage_percent +from ._common import ZombieProcess from ._compat import PermissionError from ._compat import ProcessLookupError -from ._common import usage_percent __extra__all__ = [] @@ -83,13 +86,6 @@ pidtaskinfo_map = dict( volctxsw=7, ) -# These objects get set on "import psutil" from the __init__.py -# file, see: https://github.com/giampaolo/psutil/issues/1402 -NoSuchProcess = None -ZombieProcess = None -AccessDenied = None -TimeoutExpired = None - # ===================================================================== # --- named tuples |