10000 Typo corrections so that code is PEP-8 compliant · matplotlib/matplotlib@257c4dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 257c4dc

Browse files
Typo corrections so that code is PEP-8 compliant
I forgot that I had not yet installed pyflakes and pylint on my new system, so my vim syntax checker didn't pick it up.
1 parent 0f57e7e commit 257c4dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/widgets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class Slider(AxesWidget):
272272
"""
273273
def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt='%1.2f',
274274
closedmin=True, closedmax=True, slidermin=None,
275-
slidermax=None, dragging=True, valstep=None,
275+
slidermax=None, dragging=True, valstep=None,
276276
orientation='horizontal', **kwargs):
277277
"""
278278
Parameters
@@ -335,8 +335,8 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt='%1.2f',
335335
raise ValueError("Argument slidermax ({}) has no 'val'"
336336
.format(type(slidermax)))
337337
if orientation not in ['horizontal', 'vertical']:
338-
raise ValueError("Argument orientation ({}) must be either 'horizontal' or 'vertical'"
339-
.format(orientation))
338+
raise ValueError("Argument orientation ({}) must be either"
339+
"'horizontal' or 'vertical'".format(orientation))
340340

341341
self.orientation = orientation
342342
self.closedmin = closedmin

0 commit comments

Comments
 (0)
0