diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-04-25 05:05:06 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-04-25 05:05:06 +0200 |
commit | 3d6b084a281ed72ae4d31218ed949d7046e7e841 (patch) | |
tree | 08e532a3348ec6d9c359050892b4d4fb8af4b8d4 /psutil/_psaix.py | |
parent | c0aba35a78649c453f0c89ab163a58a8efb4639e (diff) | |
download | psutil-3d6b084a281ed72ae4d31218ed949d7046e7e841.tar.gz |
fix #1486: add wraps() decorator around wrap_exceptions
Diffstat (limited to 'psutil/_psaix.py')
-rw-r--r-- | psutil/_psaix.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/_psaix.py b/psutil/_psaix.py index b0aefa99..174dac1e 100644 --- a/psutil/_psaix.py +++ b/psutil/_psaix.py @@ -7,6 +7,7 @@ """AIX platform implementation.""" import errno +import functools import glob import os import re @@ -322,7 +323,7 @@ def wrap_exceptions(fun): """Call callable into a try/except clause and translate ENOENT, EACCES and EPERM in NoSuchProcess or AccessDenied exceptions. """ - + @functools.wraps(fun) def wrapper(self, *args, **kwargs): try: return fun(self, *args, **kwargs) |