10000 some style fixes and typo fixes in docstrings · matplotlib/matplotlib@821810e · GitHub
[go: up one dir, main page]

Skip to content

Commit 821810e

Browse files
some style fixes and typo fixes in docstrings
1 parent 3771324 commit 821810e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/cbook.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def __call__(self, s):
291291
class todate(converter):
292292
"""convert to a date or None"""
293293
def __init__(self, fmt='%Y-%m-%d', missing='Null', missingval=None):
294-
'use a :func:`time.strptime` format string for conversion'
294+
"""use a :func:`time.strptime` format string for conversion"""
295295
converter.__init__(self, missing, missingval)
296296
self.fmt = fmt
297297

@@ -408,10 +408,10 @@ def __call__(self, *args, **kwargs):
408408
return mtd(*args, **kwargs)
409409

410410
def __eq__(self, other):
411-
'''
411+
"""
412412
Compare the held function and instance with that held by
413413
another proxy.
414-
'''
414+
"""
415415
try:
416416
if self.inst is None:
417417
return self.func == other.func and other.inst is None
@@ -1204,7 +1204,7 @@ def get_recursive_filelist(args):
12041204

12051205

12061206
def pieces(seq, num=2):
1207-
"Break up the *seq* into *num* tuples"
1207+
"""Break up the *seq* into *num* tuples"""
12081208
start = 0
12091209
while 1:
12101210
item = seq[start:start + num]
@@ -2116,7 +2116,7 @@ def __call__(self, key):
21162116
# iteration
21172117
iters = [myiter(it) for it in iterables]
21182118
minvals = minkey = True
2119-
while 1:
2119+
while True:
21202120
minvals = ([_f for _f in [it.key for it in iters] if _f])
21212121
if minvals:
21222122
minkey = min(minvals)

0 commit comments

Comments
 (0)
0