str.formatter invalid #5701

Merged
merged 1 commit into from Dec 20, 2015
Jump to file
+1 −1
Split
View
@@ -707,7 +707,7 @@ def __call__(self, x, pos=None):
elif six.callable(fmt):
result = fmt(x, pos)
else:
- raise TypeError('Unexpected type passed to {!r}.'.formatter(self))
+ raise TypeError('Unexpected type passed to {0!r}.'.format(self))
return result