From ce55dfeaa15f7049d2b9be379519373a195ad1be Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sun, 20 Dec 2015 11:18:21 +1100 Subject: [PATCH] str.formatter invalid A TypeError in AutoDateFormatter introduced in be0aafbc uses invalid str.formatter instead of str.format. --- lib/matplotlib/dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index 2c1f73547ba2..04c5da0f0996 100755 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -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