|
21 | 21 | """ |
22 | 22 |
|
23 | 23 | from __future__ import division |
| 24 | + |
24 | 25 | import collections |
25 | 26 | import contextlib |
26 | 27 | import datetime |
|
31 | 32 | import sys |
32 | 33 | import threading |
33 | 34 | import time |
| 35 | + |
| 36 | + |
34 | 37 | try: |
35 | 38 | import pwd |
36 | 39 | except ImportError: |
37 | 40 | pwd = None |
38 | 41 |
|
39 | 42 | from . import _common |
40 | | -from ._common import AccessDenied |
41 | | -from ._common import Error |
42 | | -from ._common import memoize_when_activated |
43 | | -from ._common import NoSuchProcess |
44 | | -from ._common import TimeoutExpired |
45 | | -from ._common import wrap_numbers as _wrap_numbers |
46 | | -from ._common import ZombieProcess |
47 | | -from ._compat import long |
48 | | -from ._compat import PermissionError |
49 | | -from ._compat import ProcessLookupError |
50 | | -from ._compat import SubprocessTimeoutExpired as _SubprocessTimeoutExpired |
51 | | -from ._compat import PY3 as _PY3 |
52 | | - |
| 43 | +from ._common import AIX |
| 44 | +from ._common import BSD |
53 | 45 | from ._common import CONN_CLOSE |
54 | 46 | from ._common import CONN_CLOSE_WAIT |
55 | 47 | from ._common import CONN_CLOSING |
|
62 | 54 | from ._common import CONN_SYN_RECV |
63 | 55 | from ._common import CONN_SYN_SENT |
64 | 56 | from ._common import CONN_TIME_WAIT |
| 57 | +from ._common import FREEBSD # NOQA |
| 58 | +from ._common import LINUX |
| 59 | +from ._common import MACOS |
| 60 | +from ._common import NETBSD # NOQA |
65 | 61 | from ._common import NIC_DUPLEX_FULL |
66 | 62 | from ._common import NIC_DUPLEX_HALF |
67 | 63 | from ._common import NIC_DUPLEX_UNKNOWN |
| 64 | +from ._common import OPENBSD # NOQA |
| 65 | +from ._common import OSX # deprecated alias |
| 66 | +from ._common import POSIX # NOQA |
68 | 67 | from ._common import POWER_TIME_UNKNOWN |
69 | 68 | from ._common import POWER_TIME_UNLIMITED |
70 | 69 | from ._common import STATUS_DEAD |
|
79 | 78 | from ._common import STATUS_WAITING |
80 | 79 | from ._common import STATUS_WAKING |
81 | 80 | from ._common import STATUS_ZOMBIE |
82 | | - |
83 | | -from ._common import AIX |
84 | | -from ._common import BSD |
85 | | -from ._common import FREEBSD # NOQA |
86 | | -from ._common import LINUX |
87 | | -from ._common import MACOS |
88 | | -from ._common import NETBSD # NOQA |
89 | | -from ._common import OPENBSD # NOQA |
90 | | -from ._common import OSX # deprecated alias |
91 | | -from ._common import POSIX # NOQA |
92 | 81 | from ._common import SUNOS |
93 | 82 | from ._common import WINDOWS |
| 83 | +from ._common import AccessDenied |
| 84 | +from ._common import Error |
| 85 | +from ._common import NoSuchProcess |
| 86 | +from ._common import TimeoutExpired |
| 87 | +from ._common import ZombieProcess |
| 88 | +from ._common import memoize_when_activated |
| 89 | +from ._common import wrap_numbers as _wrap_numbers |
| 90 | +from ._compat import PY3 as _PY3 |
| 91 | +from ._compat import PermissionError |
| 92 | +from ._compat import ProcessLookupError |
| 93 | +from ._compat import SubprocessTimeoutExpired as _SubprocessTimeoutExpired |
| 94 | +from ._compat import long |
| 95 | + |
94 | 96 |
|
95 | 97 | if LINUX: |
96 | 98 | # This is public API and it will be retrieved from _pslinux.py |
97 | 99 | # via sys.modules. |
98 | 100 | PROCFS_PATH = "/proc" |
99 | 101 |
|
100 | 102 | from . import _pslinux as _psplatform |
101 | | - |
102 | 103 | from ._pslinux import IOPRIO_CLASS_BE # NOQA |
103 | 104 | from ._pslinux import IOPRIO_CLASS_IDLE # NOQA |
104 | 105 | from ._pslinux import IOPRIO_CLASS_NONE # NOQA |
|
113 | 114 | from ._psutil_windows import NORMAL_PRIORITY_CLASS # NOQA |
114 | 115 | from ._psutil_windows import REALTIME_PRIORITY_CLASS # NOQA |
115 | 116 | from ._pswindows import CONN_DELETE_TCB # NOQA |
116 | | - from ._pswindows import IOPRIO_VERYLOW # NOQA |
| 117 | + from ._pswindows import IOPRIO_HIGH # NOQA |
117 | 118 | from ._pswindows import IOPRIO_LOW # NOQA |
118 | 119 | from ._pswindows import IOPRIO_NORMAL # NOQA |
119 | | - from ._pswindows import IOPRIO_HIGH # NOQA |
| 120 | + from ._pswindows import IOPRIO_VERYLOW # NOQA |
120 | 121 |
|
121 | 122 | elif MACOS: |
122 | 123 | from . import _psosx as _psplatform |
|
0 commit comments