aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/support/funcutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/Python/lldbsuite/support/funcutils.py')
-rw-r--r--packages/Python/lldbsuite/support/funcutils.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/Python/lldbsuite/support/funcutils.py b/packages/Python/lldbsuite/support/funcutils.py
index 53dd1fb370ba..2fa10097d43b 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