summaryrefslogtreecommitdiff
path: root/numpy/linalg
diff options
context:
space:
mode:
authorJarrod Millman <millman@berkeley.edu>2007-10-29 09:09:59 +0000
committerJarrod Millman <millman@berkeley.edu>2007-10-29 09:09:59 +0000
commit3cb37bbdb4bdf773b7bc0098b8d0cf940288a883 (patch)
tree6baee7110d71e96ea928ea44c1fe7bc1a49a4439 /numpy/linalg
parentdea664f86f0f24f0f999945e20f9b2042d6b159c (diff)
downloadnumpy-3cb37bbdb4bdf773b7bc0098b8d0cf940288a883.tar.gz
Using the in operator to find substrings. It is shorter and easier to understand.
Diffstat (limited to 'numpy/linalg')
-rwxr-xr-xnumpy/linalg/lapack_lite/make_lite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/linalg/lapack_lite/make_lite.py b/numpy/linalg/lapack_lite/make_lite.py
index dec0be017..ebd450023 100755
--- a/numpy/linalg/lapack_lite/make_lite.py
+++ b/numpy/linalg/lapack_lite/make_lite.py
@@ -141,7 +141,7 @@ class FortranLibrary:
class LapackLibrary(FortranLibrary):
def _newFortranRoutine(self, rname, filename):
routine = FortranLibrary._newFortranRoutine(self, rname, filename)
- if filename.find('BLAS') != -1:
+ if 'BLAS' in filename
routine.type = 'blas'
elif rname.startswith('z'):
routine.type = 'zlapack'