summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-05-14 14:35:06 +0800
committerGiampaolo Rodola <g.rodola@gmail.com>2019-05-14 14:35:06 +0800
commitf98d627277445282954413cb0e20116e26ff8183 (patch)
treeaf92191386a859f507d8cb7698b4fabd90dcec1b
parent5a398984d709d750da1fc0e450d72c771e18f393 (diff)
downloadpsutil-f98d627277445282954413cb0e20116e26ff8183.tar.gz
small refactoring
-rw-r--r--README.rst2
-rw-r--r--psutil/__init__.py2
-rw-r--r--psutil/_pslinux.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index dba93a06..ba6d7f7f 100644
--- a/README.rst
+++ b/README.rst
@@ -39,7 +39,7 @@
:alt: Supported Python versions
.. image:: https://img.shields.io/pypi/l/psutil.svg
- :target: https://pypi.org/project/psutil
+ :target: https://github.com/giampaolo/psutil/blob/master/LICENSE
:alt: License
-----
diff --git a/psutil/__init__.py b/psutil/__init__.py
index 0e4a8de9..b400ec85 100644
--- a/psutil/__init__.py
+++ b/psutil/__init__.py
@@ -2053,7 +2053,7 @@ def virtual_memory():
- used:
memory used, calculated differently depending on the platform and
designed for informational purposes only:
- macOS: active + inactive + wired
+ macOS: active + wired
BSD: active + wired + cached
Linux: total - free
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index 33bafd28..e4bc7d75 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -1650,7 +1650,7 @@ class Process(object):
sep = '\x00' if data.endswith('\x00') else ' '
if data.endswith(sep):
data = data[:-1]
- return [x for x in data.split(sep)]
+ return data.split(sep)
@wrap_exceptions
def environ(self):