Skip to content

Commit

Permalink
PEP8: Fix E711 comparison to None should be 'if cond is None:'
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Apr 12, 2013
1 parent dd398e7 commit e28f787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scipy/linalg/_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def solve_sylvester(a,b,q):

# Call the Sylvester equation solver
trsyl, = get_lapack_funcs(('trsyl',), (r,s,f))
if trsyl == None:
if trsyl is None:
raise RuntimeError('LAPACK implementation does not contain a proper Sylvester equation solver (TRSYL)')
y, scale, info = trsyl(r, s, f, tranb='C')

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,E20,E21,E22,E23,E24,E25,E26,E271,E3,E5,E701,E71,E72
ignore = E12,E20,E21,E22,E23,E24,E25,E26,E271,E3,E5,E701,E712,E72
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 e28f787

Please sign in to comment.