diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-21 19:46:02 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-21 19:46:02 -0700 |
commit | 56e806abb78ac03a5f45090a3b9bf7a6c9964026 (patch) | |
tree | 5c0106a65471d2c4bb85cd6b3dddf752d933fcf5 /numpy/f2py/cfuncs.py | |
parent | 1975606394d577421c4b4e21abb8fdadbdc572c0 (diff) | |
parent | c879ad8a39f2b74edcdaa05a2f2f854fb235537d (diff) | |
download | numpy-56e806abb78ac03a5f45090a3b9bf7a6c9964026.tar.gz |
Merge pull request #3242 from charris/2to3-apply-types-fixer
2to3: Apply types fixer.
Diffstat (limited to 'numpy/f2py/cfuncs.py')
-rw-r--r-- | numpy/f2py/cfuncs.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index 4e61b0634..a16a07d59 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -16,15 +16,13 @@ Pearu Peterson """ from __future__ import division, absolute_import, print_function -__version__ = "$Revision: 1.75 $"[10:-1] +import sys +import copy from . import __version__ -f2py_version = __version__.version -import types -import sys -import copy -errmess=sys.stderr.write +f2py_version = __version__.version +errmess = sys.stderr.write ##################### Definitions ################## @@ -1130,7 +1128,7 @@ def buildcfuncs(): def append_needs(need,flag=1): global outneeds,needs - if type(need)==types.ListType: + if type(need)==list: for n in need: append_needs(n,flag) elif type(need)==str: @@ -1162,7 +1160,7 @@ def append_needs(need,flag=1): if need in needs: for nn in needs[need]: t=append_needs(nn,0) - if type(t)==types.DictType: + if type(t)==dict: for nnn in t.keys(): if nnn in tmp: tmp[nnn]=tmp[nnn]+t[nnn] @@ -1178,7 +1176,7 @@ def append_needs(need,flag=1): if need in needs: for nn in needs[need]: t=append_needs(nn,flag) - if type(t)==types.DictType: + if type(t)==dict: for nnn in t.keys(): if nnn in tmp: tmp[nnn]=t[nnn]+tmp[nnn] |