Skip to content

Commit

Permalink
PEP8: Fix E272 multiple spaces before keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Apr 12, 2013
1 parent fc820a1 commit 42a7235
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scipy/ndimage/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ def _rank_filter(input, rank, size = None, footprint = None, output = None,
rank = int(float(filter_size) * percentile / 100.0)
if rank < 0:
rank += filter_size
if rank < 0 or rank >= filter_size:
if rank < 0 or rank >= filter_size:
raise RuntimeError('rank not within filter footprint size')
if rank == 0:
return minimum_filter(input, None, footprint, output, mode, cval,
Expand Down
2 changes: 1 addition & 1 deletion scipy/sparse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __mul__(self, other):
return self._mul_vector(other)
elif other.shape == (N, 1):
return self._mul_vector(other.ravel()).reshape(M, 1)
elif other.ndim == 2 and other.shape[0] == N:
elif other.ndim == 2 and other.shape[0] == N:
return self._mul_multivector(other)

if isscalarlike(other):
Expand Down
2 changes: 1 addition & 1 deletion scipy/stats/morestats.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def ansari(x,y):
uxy = unique(xy)
repeats = (len(uxy) != len(xy))
exact = ((m<55) and (n<55) and not repeats)
if repeats and ((m < 55) or (n < 55)):
if repeats and ((m < 55) or (n < 55)):
warnings.warn("Ties preclude use of exact statistic.")
if exact:
astart, a1, ifault = statlib.gscale(n,m)
Expand Down
2 changes: 1 addition & 1 deletion scipy/weave/tests/test_blitz_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def generic_2d(self,expr,typ):
arg_dict[arg] = random.normal(0,1,size).astype(typ)
# set imag part of complex values to non-zero value
try: arg_dict[arg].imag = arg_dict[arg].real
except: pass
except: pass
print('Run:', size,typ)
standard,compiled = self.generic_check(expr,arg_dict,type,size,
mod_location)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ commands=python {toxinidir}/tools/test-installed-scipy.py {posargs:}
[pep8]
max_line_length=200
statistics = True
ignore = E12,E2,E3,E4,E5,E7
ignore = E12,E20,E21,E22,E23,E24,E25,E26,E271,E3,E4,E5,E7
exclude = scipy/sparse/linalg/dsolve/umfpack/_umfpack.py,scipy/sparse/sparsetools/bsr.py,scipy/sparse/sparsetools/coo.py,scipy/sparse/sparsetools/csc.py,scipy/sparse/sparsetools/csgraph.py,scipy/sparse/sparsetools/csr.py,scipy/sparse/sparsetools/dia.py

0 comments on commit 42a7235

Please sign in to comment.