diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-17 01:01:44 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-17 01:01:44 +0200 |
commit | 0e3f6c465181734181f2428b4a99429a82f3fc45 (patch) | |
tree | 6c2ea5784e72d8528e84cfdc53a471a7942b6b8c /HISTORY.rst | |
parent | b070015104ea01689fee9f7c91709c0e2d35a9a8 (diff) | |
download | psutil-0e3f6c465181734181f2428b4a99429a82f3fc45.tar.gz |
fix #2238 if cwd() cannot be determined always return "" instead of None
Diffstat (limited to 'HISTORY.rst')
-rw-r--r-- | HISTORY.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/HISTORY.rst b/HISTORY.rst index d9463817..97c2c20e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -15,6 +15,10 @@ empty string) - The function is faster since it no longer iterates over all processes. - No longer produces duplicate connection entries. +- 2238_: there are cases where `Process.cwd()`_ cannot be determined + (e.g. directory no longer exists), in which case we returned either ``None`` + or an empty string. This was consolidated and we now return ``""`` on all + platforms. **Bug fixes** @@ -39,8 +43,8 @@ *used* are too high. We now match values shown by *htop* CLI utility. - 2236_, [NetBSD]: `Process.num_threads()`_ and `Process.threads()`_ return threads that are already terminated. -- 2237_, [OpenBSD]: `Process.cwd()`_ may raise ``FileNotFoundError`` if cwd no - longer exists. Return ``None`` instead. +- 2237_, [OpenBSD], [NetBSD]: `Process.cwd()`_ may raise ``FileNotFoundError`` + if cwd no longer exists. Return an empty string instead. 5.9.4 ===== |