diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
commit | 14f1b3e8826ce43b978db93a62d1166055db5394 (patch) | |
tree | 0a00ad8d3498783fe0193f3b656bca17c4c8697d /packages/Python/lldbsuite/support/funcutils.py | |
parent | 4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff) |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/support/funcutils.py')
-rw-r--r-- | packages/Python/lldbsuite/support/funcutils.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/Python/lldbsuite/support/funcutils.py b/packages/Python/lldbsuite/support/funcutils.py index 53dd1fb370bab..2fa10097d43b5 100644 --- a/packages/Python/lldbsuite/support/funcutils.py +++ b/packages/Python/lldbsuite/support/funcutils.py @@ -8,9 +8,17 @@ import inspect # LLDB modules + def requires_self(func): func_argc = len(inspect.getargspec(func).args) - if func_argc == 0 or (getattr(func,'im_self', None) is not None) or (hasattr(func, '__self__')): + if func_argc == 0 or ( + getattr( + func, + 'im_self', + None) is not None) or ( + hasattr( + func, + '__self__')): return False else: return True |