diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2022-01-08 00:23:20 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2022-01-08 00:23:20 +0100 |
commit | 5c2e3e38f44d3c254a13a9000997575706cbbcc3 (patch) | |
tree | 73649e27846c533aca717cb5570758ff7095081a | |
parent | 0d2c7dab9972604024a5a4c73ad7b1d70c11b600 (diff) | |
download | psutil-5c2e3e38f44d3c254a13a9000997575706cbbcc3.tar.gz |
update docstring
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
-rw-r--r-- | psutil/_common.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/psutil/_common.py b/psutil/_common.py index ef7a4877..8030e2e0 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -730,9 +730,10 @@ def open_text(fname, **kwargs): def cat(fname, fallback=_DEFAULT, _open=open_text): - """Read file content until EOF and return it as a string. File is - open in text mode. If specified, `fallback` is the value returned in - case of error, either if the file does not exist or it can't be read(). + """Read entire file content and return it as a string. File is + opened in text mode. If specified, `fallback` is the value + returned in case of error, either if the file does not exist or + it can't be read(). """ if fallback is _DEFAULT: with _open(fname) as f: |