summaryrefslogtreecommitdiff
path: root/psutil/_pslinux.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/_pslinux.py')
-rw-r--r--psutil/_pslinux.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index 2c5e97e2..2884e4d1 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -59,11 +59,11 @@ __extra__all__ = [
# =====================================================================
-# --- constants
+# --- globals
# =====================================================================
-POWER_SUPPLY_PATH = "/sys/class/power_supply"
+POWER_SUPPLY_PATH = "/sys/class/power_supply"
HAS_SMAPS = os.path.exists('/proc/%s/smaps' % os.getpid())
HAS_PRLIMIT = hasattr(cext, "linux_prlimit")
_DEFAULT = object()
@@ -137,14 +137,6 @@ TCP_STATUSES = {
"0B": _common.CONN_CLOSING
}
-_DEFAULT = object()
-
-
-# =====================================================================
-# -- exceptions
-# =====================================================================
-
-
# these get overwritten on "import psutil" from the __init__.py file
NoSuchProcess = None
ZombieProcess = None
@@ -529,7 +521,7 @@ def swap_memory():
# =====================================================================
-# --- CPUs
+# --- CPU
# =====================================================================