From 9aaabe07f3807ae7f0a8344593066c881bc8db69 Mon Sep 17 00:00:00 2001 From: peterscherpelz <31747262+peterscherpelz@users.noreply.github.com> Date: Mon, 14 Jun 2021 13:33:02 -0700 Subject: callbacks.py: Fix bound method py2 -> py3 syntax (#2012) --- Python/pywarpx/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pywarpx/callbacks.py') 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): -- cgit v1.2.3