Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a28d1c5

Browse files
committed
FIX pep8 compliance
1 parent c4dddc4 commit a28d1c5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/matplotlib/cbook/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ def mkdirs(newdir, mode=0o777):
830830
if exception.errno != errno.EEXIST:
831831
raise
832832

833+
833834
class GetRealpathAndStat(object):
834835
def __init__(self):
835836
self._cache = {}
@@ -846,6 +847,8 @@ def __call__(self, path):
846847
result = realpath, stat_key
847848
self._cache[path] = result
848849
return result
850+
851+
849852
get_realpath_and_stat = GetRealpathAndStat()
850853

851854

@@ -932,6 +935,7 @@ def wrap(prefix, text, cols):
932935
ret += pad + ' '.join(line) + '\n'
933936
return ret
934937

938+
935939
# A regular expression used to determine the amount of space to
936940
# remove. It looks for the first sequence of spaces immediately
937941
# following the first newline, or at the beginning of the string.
@@ -1098,10 +1102,6 @@ def onetrue(seq):
10981102
def allpairs(x):
10991103
"""
11001104
return all possible pairs in sequence *x*
1101-
1102-
Condensed by Alex Martelli from this thread_ on c.l.python
1103-
1104-
.. _thread: http://groups.google.com/groups?q=all+pairs+group:*python*&hl=en&lr=&ie=UTF-8&selm=mailman.4028.1096403649.5135.python-list%40python.org&rnum=1
11051105
"""
11061106
return [(s, f) for i, f in enumerate(x) for s in x[i + 1:]]
11071107

@@ -1563,7 +1563,7 @@ def recursive_remove(path):
15631563
os.removedirs(fname)
15641564
else:
15651565
os.remove(fname)
1566-
#os.removedirs(path)
1566+
# os.removedirs(path)
15671567
else:
15681568
os.remove(path)
15691569

@@ -1850,7 +1850,6 @@ def _compute_conf_interval(data, med, iqr, bootstrap):
18501850
# add in the remaining stats
18511851
stats['q1'], stats['med'], stats['q3'] = q1, med, q3
18521852

1853-
18541853
return bxpstats
18551854

18561855

@@ -2413,6 +2412,7 @@ def get_label(y, default_name):
24132412
except AttributeError:
24142413
return default_name
24152414

2415+
24162416
_lockstr = """\
24172417
LOCKERROR: matplotlib is trying to acquire the lock
24182418
{!r}

0 commit comments

Comments
 (0)