Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b90e18b

Browse files
astropy-buildbotddale
authored andcommitted
Update for new signature of MethodType in Python 3.1 (Let's assume Python 3.0 is "unsupported" for now).
1 parent 1bcfeac commit b90e18b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def __call__(self, *args, **kwargs):
187187
elif self.inst is not None:
188188
# build a new instance method with a strong reference to the instance
189189
if sys.hexversion >= 0x03000000:
190-
mtd = types.MethodType(self.func, self.inst(), self.klass)
190+
mtd = types.MethodType(self.func, self.inst())
191191
else:
192192
mtd = new.instancemethod(self.func, self.inst(), self.klass)
193193
else:

0 commit comments

Comments
 (0)