diff options
author | 2021-06-14 13:33:02 -0700 | |
---|---|---|
committer | 2021-06-14 13:33:02 -0700 | |
commit | 9aaabe07f3807ae7f0a8344593066c881bc8db69 (patch) | |
tree | 849da69b4bd1df54ac4562bdc33964e40de5255d /Python/pywarpx/callbacks.py | |
parent | 555090d2ba6918c2117a45aba6d27f3b5aab353f (diff) | |
download | WarpX-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.py | 2 |
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): |