summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-06-10 08:44:34 -0700
committerGiampaolo Rodola <g.rodola@gmail.com>2018-06-10 17:44:34 +0200
commitc7bd2b6943402805bcaf3ac899c54278be0a75e8 (patch)
tree5aecee2030be711a1df300d9d705f70c36e24d9f
parent776d61024f061c47fbff5c765a619c1fd5701f5a (diff)
downloadpsutil-c7bd2b6943402805bcaf3ac899c54278be0a75e8.tar.gz
Update Python 2 docs URLs to Python 3 (#1293)
The Python3 docs are more actively maintained and are the future of the Python project.
-rw-r--r--docs/index.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/index.rst b/docs/index.rst
index aaf004ce..bde3d453 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -993,11 +993,11 @@ Process class
When accessing methods of this class always be prepared to catch
:class:`NoSuchProcess`, :class:`ZombieProcess` and :class:`AccessDenied`
exceptions.
- `hash() <http://docs.python.org/2/library/functions.html#hash>`__ builtin can
+ `hash() <https://docs.python.org/3/library/functions.html#hash>`__ builtin can
be used against instances of this class in order to identify a process
univocally over time (the hash is determined by mixing process PID
and creation time). As such it can also be used with
- `set()s <http://docs.python.org/2/library/stdtypes.html#types-set>`__.
+ `set()s <https://docs.python.org/3/library/stdtypes.html#types-set>`__.
.. note::
@@ -1761,7 +1761,7 @@ Process class
``'r+'`` and ``'a+'``. There's no distinction between files opened in
bynary or text mode (``"b"`` or ``"t"``).
- **flags** (*Linux*): the flags which were passed to the underlying
- `os.open <https://docs.python.org/2/library/os.html#os.open>`__ C call
+ `os.open <https://docs.python.org/3/library/os.html#os.open>`__ C call
when the file was opened (e.g.
`os.O_RDONLY <https://docs.python.org/3/library/os.html#os.O_RDONLY>`__,
`os.O_TRUNC <https://docs.python.org/3/library/os.html#os.O_TRUNC>`__,
@@ -2600,7 +2600,7 @@ FAQs
* Q: What about load average?
* A: psutil does not expose any load average function as it's already available
in python as
- `os.getloadavg <https://docs.python.org/2/library/os.html#os.getloadavg>`__.
+ `os.getloadavg <https://docs.python.org/3/library/os.html#os.getloadavg>`__.
Running tests
=============