Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ce55dfe

Browse filesBrowse 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
Copy full SHA for ce55dfe

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.