Fix format string in TypeError

This commit is contained in:
Tommy Wang
2015-01-30 13:36:50 -06:00
parent 8e1de34ea9
commit a1634087f6

View File

@@ -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.