aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/callbacks.py
diff options
context:
space:
mode:
authorGravatar peterscherpelz <31747262+peterscherpelz@users.noreply.github.com> 2021-06-14 13:33:02 -0700
committerGravatar GitHub <noreply@github.com> 2021-06-14 13:33:02 -0700
commit9aaabe07f3807ae7f0a8344593066c881bc8db69 (patch)
tree849da69b4bd1df54ac4562bdc33964e40de5255d /Python/pywarpx/callbacks.py
parent555090d2ba6918c2117a45aba6d27f3b5aab353f (diff)
downloadWarpX-9aaabe07f3807ae7f0a8344593066c881bc8db69.tar.gz
WarpX-9aaabe07f3807ae7f0a8344593066c881bc8db69.tar.zst
WarpX-9aaabe07f3807ae7f0a8344593066c881bc8db69.zip
callbacks.py: Fix bound method py2 -> py3 syntax (#2012)
Diffstat (limited to '')
-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):