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

Skip to content

Commit 3a95660

Browse files
committed
Merge pull request #5701 from jayvdb/str.formatter
FIX: str.formatter invalid
1 parent 6b30aaa commit 3a95660

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)