Fix format string in TypeError
This commit is contained in:
@@ -18,7 +18,7 @@ class WeakMethod(weakref.ref):
|
||||
obj = meth.__self__
|
||||
func = meth.__func__
|
||||
except AttributeError:
|
||||
raise TypeError('argument should be a bound method, not {}'.format(type(meth)))
|
||||
raise TypeError('argument should be a bound method, not {0}'.format(type(meth)))
|
||||
|
||||
def _cb(arg):
|
||||
# The self-weakref trick is needed to avoid creating a reference cycle.
|
||||
|
||||
Reference in New Issue
Block a user