Skip to content

Commit 5d881a2

Browse files
author
Phil Elson
committed
Fixed string concatenation.
1 parent f9e9d58 commit 5d881a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/ticker.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -809,10 +809,10 @@ def __call__(self):
809809
def raise_if_exceeds(self, locs):
810810
'raise a RuntimeError if Locator attempts to create more than MAXTICKS locs'
811811
if len(locs)>=self.MAXTICKS:
812-
raise RuntimeError(('Locator attempting to generate %d ticks from '
813-
'%s to %s: exceeds Locator.MAXTICKS') %
814-
(len(locs), locs[0], locs[-1]))
815-
812+
msg = ('Locator attempting to generate %d ticks from %s to %s: ' +
813+
'exceeds Locator.MAXTICKS') % (len(locs), locs[0], locs[-1])
814+
raise RuntimeError(msg)
815+
816816
return locs
817817

818818
def view_limits(self, vmin, vmax):

0 commit comments

Comments
 (0)