diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-03 21:01:00 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-03 21:01:00 +0100 |
commit | 8113eadf7861becfd52dffb634695e93970fdaee (patch) | |
tree | 8e17a19d77981d354dd3a05b17a8011f9f13e943 /psutil/_psosx.py | |
parent | 4d219e1349187553245c9ec57d9a2fb6923d601e (diff) | |
download | psutil-8113eadf7861becfd52dffb634695e93970fdaee.tar.gz |
add docstrings
Diffstat (limited to 'psutil/_psosx.py')
-rw-r--r-- | psutil/_psosx.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/psutil/_psosx.py b/psutil/_psosx.py index f7adb43a..f22ef2fb 100644 --- a/psutil/_psosx.py +++ b/psutil/_psosx.py @@ -185,6 +185,7 @@ disk_io_counters = cext.disk_io_counters def disk_partitions(all=False): + """Return mounted disk partitions as a list of namedtuples.""" retlist = [] partitions = cext.disk_partitions() for partition in partitions: @@ -209,6 +210,7 @@ net_if_addrs = cext_posix.net_if_addrs def net_connections(kind='inet'): + """System-wide network connections.""" # Note: on OSX this will fail with AccessDenied unless # the process is owned by root. ret = [] @@ -250,6 +252,7 @@ def boot_time(): def users(): + """Return currently connected users as a list of namedtuples.""" retlist = [] rawlist = cext.users() for item in rawlist: |