File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ def _formatSciNotation(self, s):
523
523
# transform 1e+004 into 1e4, for example
524
524
if self ._useLocale :
525
525
decimal_point = locale .localeconv ()['decimal_point' ]
526
- positive = locale .localeconv ()['positive_sign' ]
526
+ positive_sign = locale .localeconv ()['positive_sign' ]
527
527
else :
528
528
decimal_point = '.'
529
529
positive_sign = '+'
@@ -545,7 +545,7 @@ def _formatSciNotation(self, s):
545
545
else :
546
546
s = ('%se%s%s' % (significand , sign , exponent )).rstrip ('e' )
547
547
return s
548
- except IndexError , msg :
548
+ except IndexError :
549
549
return s
550
550
551
551
@@ -809,8 +809,10 @@ def __call__(self):
809
809
def raise_if_exceeds (self , locs ):
810
810
'raise a RuntimeError if Locator attempts to create more than MAXTICKS locs'
811
811
if len (locs )>= self .MAXTICKS :
812
- raise RuntimeError ('Locator attempting to generate %d ticks from %s to %s: exceeds Locator.MAXTICKS' % (len (locs ), locs [0 ], locs [- 1 ]))
813
-
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
+
814
816
return locs
815
817
816
818
def view_limits (self , vmin , vmax ):
You can’t perform that action at this time.
0 commit comments