summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2021-12-29 00:29:37 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2021-12-29 00:29:37 +0100
commit193e87101aa099f8f320c4c455758b8d177bdff7 (patch)
treee9ca7085af06faa9b184b158e09c2e35bf7476c6
parent692512d8ecba81c99caca67dfb32cd38e1e50183 (diff)
downloadpsutil-193e87101aa099f8f320c4c455758b8d177bdff7.tar.gz
style
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
-rw-r--r--HISTORY.rst28
1 files changed, 14 insertions, 14 deletions
diff --git a/HISTORY.rst b/HISTORY.rst
index e2b3352f..8c5580f3 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1457,7 +1457,7 @@ XXXX-XX-XX
**Enhancements**
-- 387_: system-wide open connections a-la netstat.
+- 387_: system-wide open connections a-la ``netstat``.
**Bug fixes**
@@ -1476,7 +1476,7 @@ XXXX-XX-XX
- 427_: number of logical CPUs and physical cores (`cpu_count()`_).
- 447_: `wait_procs()`_ ``timeout`` parameter is now optional.
- 452_: make Process instances hashable and usable with set()s.
-- 453_: tests on Python < 2.7 require unittest2 module.
+- 453_: tests on Python < 2.7 require ``unittest2`` module.
- 459_: add a make file for running tests and other repetitive tasks (also
on Windows).
- 463_: make timeout parameter of ``cpu_percent*`` functions default to ``0.0``
@@ -1526,20 +1526,20 @@ In most cases accessing the old names will work but it will cause a
| psutil.TOTAL_PHYMEM | virtual_memory.total |
+-----------------------+----------------------------------+
-- Renamed psutil.* functions:
+- Renamed ``psutil.*`` functions:
- +--------------------------+----------------------------------+
- | Old name | Replacement |
- +==========================+==================================+
- | - psutil.get_pid_list() | `psutil.pids()`_ |
- +--------------------------+----------------------------------+
- | - psutil.get_users() | `psutil.users()`_ |
- +--------------------------+----------------------------------+
- | - psutil.get_boot_time() | `psutil.boot_time()`_ |
- +--------------------------+----------------------------------+
+ +--------------------------+-------------------------------+
+ | Old name | Replacement |
+ +==========================+===============================+
+ | - psutil.get_pid_list() | psutil.pids() |
+ +--------------------------+-------------------------------+
+ | - psutil.get_users() | psutil.users() |
+ +--------------------------+-------------------------------+
+ | - psutil.get_boot_time() | psutil.boot_time() |
+ +--------------------------+-------------------------------+
- All psutil.Process ``get_*`` methods lost the ``get_`` prefix.
- get_ext_memory_info() renamed to memory_info_ex().
+ E.g. ``get_ext_memory_info()`` was renamed to ``memory_info_ex()``.
Assuming ``p = psutil.Process()``:
+--------------------------+----------------------+
@@ -1591,7 +1591,7 @@ In most cases accessing the old names will work but it will cause a
| Old name | Replacement |
+======================+=================================+
| p.set_nice() | p.nice(value) |
-/ +----------------------+---------------------------------+
+ +----------------------+---------------------------------+
| p.set_ionice() | p.ionice(ioclass, value=None) |
+----------------------+---------------------------------+
| p.set_cpu_affinity() | p.cpu_affinity(cpus) |