From 1ebe625e5aa21b33e9de5652c305d1d0a2147059 Mon Sep 17 00:00:00 2001 From: wiggin15 Date: Tue, 26 Sep 2017 14:52:42 +0300 Subject: AIX support (#1123) * AIX support * AIX support * AIX support * AIX support - use get_procfs_path() instead of /proc * AIX support - group sections like in other modules * AIX support * AIX support * AIX support * AIX support - remove unnecessary dict copy --- psutil/_common.py | 1 + 1 file changed, 1 insertion(+) (limited to 'psutil/_common.py') diff --git a/psutil/_common.py b/psutil/_common.py index 7c4af3d8..2d562f93 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -81,6 +81,7 @@ OPENBSD = sys.platform.startswith("openbsd") NETBSD = sys.platform.startswith("netbsd") BSD = FREEBSD or OPENBSD or NETBSD SUNOS = sys.platform.startswith("sunos") or sys.platform.startswith("solaris") +AIX = sys.platform.startswith("aix") # =================================================================== -- cgit v1.2.1 From c3767da76a366cabbe1c84ad9cef007ae51c400e Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Thu, 7 Dec 2017 11:02:35 +0100 Subject: Use FutureWarning instead of DeprecationWarning (#1188) * make Process.memory_info_ex() raise FutureWarning instead of DeprecationWarning because the latter is suppressed by default * update HISTORY * add test case --- psutil/_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'psutil/_common.py') diff --git a/psutil/_common.py b/psutil/_common.py index 2d562f93..870971e4 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -461,14 +461,14 @@ def deprecated_method(replacement): 'replcement' is the method name which will be called instead. """ def outer(fun): - msg = "%s() is deprecated; use %s() instead" % ( + msg = "%s() is deprecated and will be removed; use %s() instead" % ( fun.__name__, replacement) if fun.__doc__ is None: fun.__doc__ = msg @functools.wraps(fun) def inner(self, *args, **kwargs): - warnings.warn(msg, category=DeprecationWarning, stacklevel=2) + warnings.warn(msg, category=FutureWarning, stacklevel=2) return getattr(self, replacement)(*args, **kwargs) return inner return outer -- cgit v1.2.1