Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix pylint warnings / cleanup (#2218) | Giampaolo Rodola | 2023-04-01 | 1 | -2/+2 |
| | |||||
* | When raising warning, always use stacklevel=2 | Giampaolo Rodola | 2023-03-27 | 1 | -1/+1 |
| | | | | | | | | | | B028: No explicit stacklevel argument found. The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | fix exec() compatibility with PYPY (closes #2198) | Giampaolo Rodola | 2023-03-07 | 1 | -1/+6 |
| | |||||
* | Clearer tracebacks in case of chained exceptions (#2196) | Giampaolo Rodola | 2023-01-24 | 1 | -3/+26 |
| | | | | | | In case of exception, display a cleaner error traceback by hiding the `KeyError` bit deriving from a missed cache hit. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | write extensive test suite for @memoize decorator | Giampaolo Rodola | 2022-12-15 | 1 | -0/+9 |
| | |||||
* | Add in support for network interface flags. (#2037) | Chris Lalancette | 2022-09-06 | 1 | -1/+2 |
| | | | | Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> | ||||
* | Drop Python 2.6 support (#2039) | Matthieu Darbois | 2022-04-15 | 1 | -4/+1 |
| | | | Signed-off-by: mayeut <mayeut@users.noreply.github.com> | ||||
* | Fixes #2078: Import the inspect module on use (#2079) | Steve Dower | 2022-02-23 | 1 | -2/+1 |
| | |||||
* | fix py 2.7 failures | Giampaolo Rodola | 2022-01-16 | 1 | -1/+3 |
| | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | fix repr(Error): PID was not shown if PID == 0 | Giampaolo Rodola | 2022-01-15 | 1 | -1/+1 |
| | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | [Linux]: increase `read(2)` buffer size when reading /proc files lines (#2054) | Giampaolo Rodola | 2022-01-15 | 1 | -12/+39 |
| | | | This should help having more consistent results. | ||||
* | [Linux] cat/bcat utils refactoring (#2053) | Giampaolo Rodola | 2022-01-08 | 1 | -0/+24 |
| | |||||
* | fix #2048: str(psutil.Error) raise AttributeError | Giampaolo Rodola | 2022-01-07 | 1 | -1/+1 |
| | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | move import on top of the file | Giampaolo Rodola | 2021-12-31 | 1 | -1/+2 |
| | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | Automatically sort imports (isort CLI tool) (#2033) | Giampaolo Rodola | 2021-12-14 | 1 | -1/+3 |
| | |||||
* | PSUTIL_DEBUG: print file + line number for C ext modules (#2005) | Giampaolo Rodola | 2021-10-26 | 1 | -8/+5 |
| | |||||
* | Changes to debug() function: | Giampaolo Rodola | 2021-10-14 | 1 | -1/+5 |
| | | | | | | | | | | * use str() if exception derives from OSError / EnvironmentError. This way we will print the file name (if it exists). * use repr() for any other exception * add tests for debug() function * backport contextlib.redirect_stderr Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | add debug() prints in a couple of places | Giampaolo Rodola | 2021-10-14 | 1 | -0/+2 |
| | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | add support for MidnightBSD (#1996) | Saeed Rasooli | 2021-10-12 | 1 | -1/+1 |
| | | | Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com> | ||||
* | fix #1919 / Linux: sensors_battery() may raise TypeError on PureOS | Giampaolo Rodola | 2021-10-03 | 1 | -1/+0 |
| | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | Improve custom error tracebacks and messages (#1992) | Giampaolo Rodola | 2021-10-03 | 1 | -44/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removal of duplicated `psutil.NoSuchProcess` text. Before: ``` psutil.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=4651, name="python") psutil.ZombieProcess: psutil.ZombieProcess process no longer exists and it's a zombie (pid=4651, name="python") psutil.AccessDenied: psutil.AccessDenied (pid=4651, name="python") psutil.TimeoutExpired: psutil.TimeoutExpired timeout after 5 seconds (pid=4651, name="python") ``` Now: ``` psutil.NoSuchProcess: process no longer exists (pid=4651, name="python") psutil.ZombieProcess: process no longer exists and it's a zombie (pid=4651, name="python") psutil.AccessDenied: (pid=4651, name="python") psutil.TimeoutExpired: timeout after 5 seconds (pid=4651, name="python") ``` --- More info if process PID has been reused: Before: ``` psutil.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=465148) ``` Now: ``` psutil.NoSuchProcess: process no longer exists and its PID has been reused (pid=465148) ``` --- Before: ``` psutil.NoSuchProcess: psutil.NoSuchProcess no process found with pid 666 ``` Now: ``` psutil.NoSuchProcess: process PID not found (pid=666) ``` --- Before: ``` >>> psutil.NoSuchProcess(212, name="python") psutil.NoSuchProcess process no longer exists (pid=212, name='python') ``` Now: ``` >>> psutil.NoSuchProcess(212, name="python") psutil.NoSuchProcess(pid=212, name='python', msg='process no longer exists') ``` | ||||
* | give credits to @XuehaiPan for #1948, #1949 | Giampaolo Rodola | 2021-10-02 | 1 | -1/+3 |
| | | | | Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | Fix thread safety of cached functions lock-freely (#1949) | Xuehai Pan | 2021-10-02 | 1 | -1/+6 |
| | | | | Signed-off-by: XuehaiPan <XuehaiPan@pku.edu.cn> | ||||
* | disk_partitions() maxfile and maxpath (#1863) | Giampaolo Rodola | 2020-10-24 | 1 | -1/+2 |
| | |||||
* | remove weird 'return xxx' left in code | Giampaolo Rodola | 2020-10-23 | 1 | -3/+0 |
| | |||||
* | pragma no cover | Giampaolo Rodola | 2020-10-18 | 1 | -1/+1 |
| | |||||
* | add battery test; increase coverage | Giampaolo Rodola | 2020-10-17 | 1 | -1/+1 |
| | |||||
* | increase test coverage | Giampaolo Rodola | 2020-10-17 | 1 | -1/+2 |
| | |||||
* | Wheels2 (#1761) | Giampaolo Rodola | 2020-05-18 | 1 | -3/+4 |
| | |||||
* | MemoryLeakTest class enhancements (#1731) | Giampaolo Rodola | 2020-04-23 | 1 | -2/+2 |
| | |||||
* | Git hook for renamed/added/deleted files + flake8 print() + tidelift (#1704) | Giampaolo Rodola | 2020-02-21 | 1 | -4/+4 |
| | |||||
* | fix KeyErrorrelease-5.7.0 | Giampaolo Rodola | 2020-02-18 | 1 | -1/+1 |
| | |||||
* | refactor print colors utils | Giampaolo Rodola | 2020-02-15 | 1 | -17/+60 |
| | |||||
* | Add support for PyPy on Windows (#1686) | Giampaolo Rodola | 2020-02-11 | 1 | -1/+7 |
| | |||||
* | fix #1650 [Linux] sensors_temperatures() no longer emit warnings on file not ↵ | Giampaolo Rodola | 2020-02-09 | 1 | -2/+10 |
| | | | | found (print debug msg instead) | ||||
* | move custom exceptions in _common.py | Giampaolo Rodola | 2020-01-02 | 1 | -0/+104 |
| | |||||
* | setup.py: print instructions if C compiler is not installed | Giampaolo Rodola | 2019-12-28 | 1 | -1/+35 |
| | |||||
* | fix #1546: usage percent may be rounded to 0 on Python 2. | Giampaolo Rodola | 2019-06-28 | 1 | -4/+4 |
| | |||||
* | Connection family/type are not converted to enums (#1535) | Giampaolo Rodola | 2019-06-14 | 1 | -6/+23 |
| | |||||
* | refactor/move some utilities into _common.py | Giampaolo Rodola | 2019-04-12 | 1 | -0/+13 |
| | |||||
* | move bytes2human() into psutil._common and reused it from scripts dir | Giampaolo Rodola | 2019-04-05 | 1 | -0/+21 |
| | |||||
* | #1291 / OSX: mark memory_maps() as deprecated and make it alwats raise ↵ | Giampaolo Rodola | 2019-02-27 | 1 | -1/+1 |
| | | | | AccessDenied | ||||
* | fix #1111: use a lock to make Process.oneshot() thread safe | Giampaolo Rodola | 2018-12-13 | 1 | -7/+10 |
| | |||||
* | #1373: different approach to oneshot() cache (pass Process instances around ↵ | Giampaolo Rodola | 2018-12-13 | 1 | -12/+13 |
| | | | | - which is faster) | ||||
* | #1341: move open() utilities/wrappers in _common.py | Giampaolo Rodola | 2018-09-26 | 1 | -0/+18 |
| | |||||
* | fix #1309: add STATUS_PARKED constant and fix STATUS_IDLE (both on linux) | Giampaolo Rodola | 2018-07-25 | 1 | -2/+3 |
| | |||||
* | Rename OSX to macOS (#1298) | Giampaolo Rodola | 2018-06-26 | 1 | -4/+5 |
| | | | rename OSX to macOS | ||||
* | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2018-06-26 | 1 | -1/+1 |
|\ | |||||
| * | Osx temps (#1284) | Alex Manuskin | 2018-06-26 | 1 | -1/+1 |
| | | | | | | OSX: add temperatures() and fans() | ||||
* | | little refactoring | Giampaolo Rodola | 2018-06-26 | 1 | -1/+1 |
|/ |