aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/callbacks.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pywarpx/callbacks.py')
-rw-r--r--Python/pywarpx/callbacks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pywarpx/callbacks.py b/Python/pywarpx/callbacks.py
index 3d5bb1477..d0b1688a9 100644
--- a/Python/pywarpx/callbacks.py
+++ b/Python/pywarpx/callbacks.py
@@ -148,7 +148,7 @@ class CallbackFunctions(object):
if isinstance(f,types.MethodType):
# --- If the function is a method of a class instance, then save a full
# --- reference to that instance and the method name.
- finstance = f.im_self
+ finstance = f.__self__
fname = f.__name__
self.funcs.append([finstance,fname])
elif callable(f):