diff options
author | Jarrod Millman <millman@berkeley.edu> | 2007-10-29 09:09:59 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2007-10-29 09:09:59 +0000 |
commit | 3cb37bbdb4bdf773b7bc0098b8d0cf940288a883 (patch) | |
tree | 6baee7110d71e96ea928ea44c1fe7bc1a49a4439 /numpy/f2py/f2py2e.py | |
parent | dea664f86f0f24f0f999945e20f9b2042d6b159c (diff) | |
download | numpy-3cb37bbdb4bdf773b7bc0098b8d0cf940288a883.tar.gz |
Using the in operator to find substrings. It is shorter and easier to understand.
Diffstat (limited to 'numpy/f2py/f2py2e.py')
-rwxr-xr-x | numpy/f2py/f2py2e.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index d86327faa..b4aa7bf32 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -289,7 +289,7 @@ def buildmodules(list): outmess('Building modules...\n') modules,mnames,isusedby=[],[],{} for i in range(len(list)): - if string.find(list[i]['name'],'__user__')>=0: + if '__user__' in list[i]['name']: cb_rules.buildcallbacks(list[i]) else: if list[i].has_key('use'): |