8000 str.formatter invalid · matplotlib/matplotlib@ce55dfe · GitHub
[go: up one dir, main page]

Skip to content

Commit ce55dfe

Browse files
committed
str.formatter invalid
A TypeError in AutoDateFormatter introduced in be0aafb uses invalid str.formatter instead of str.format.
1 parent 6b30aaa commit ce55dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def __call__(self, x, pos=None):
707707
elif six.callable(fmt):
708708
result = fmt(x, pos)
709709
else:
710-
raise TypeError('Unexpected type passed to {!r}.'.formatter(self))
710+
raise TypeError('Unexpected type passed to {0!r}.'.format(self))
711711

712712
return result
713713

0 commit comments

Comments
 (0)
0