diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-05-14 14:35:06 +0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-05-14 14:35:06 +0800 |
commit | f98d627277445282954413cb0e20116e26ff8183 (patch) | |
tree | af92191386a859f507d8cb7698b4fabd90dcec1b | |
parent | 5a398984d709d750da1fc0e450d72c771e18f393 (diff) | |
download | psutil-f98d627277445282954413cb0e20116e26ff8183.tar.gz |
small refactoring
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | psutil/__init__.py | 2 | ||||
-rw-r--r-- | psutil/_pslinux.py | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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): |