diff options
Diffstat (limited to 'numpy/f2py/lib/parser/api.py')
-rw-r--r-- | numpy/f2py/lib/parser/api.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/f2py/lib/parser/api.py b/numpy/f2py/lib/parser/api.py index efcfcbf28..0a7346095 100644 --- a/numpy/f2py/lib/parser/api.py +++ b/numpy/f2py/lib/parser/api.py @@ -12,6 +12,7 @@ Created: Oct 2006 """ # import all Statement classes: +from base_classes import EndStatement from block_statements import * # CHAR_BIT is used to convert object bit sizes to byte sizes @@ -34,8 +35,8 @@ def parse(input, isfree=None, isstrict=None, include_dirs = None): if os.path.isfile(input): reader = FortranFileReader(input, include_dirs = include_dirs) - if isfree is None: reader.isfree - if isstrict is None: reader.isstrict + if isfree is None: isfree = reader.isfree + if isstrict is None: isstrict = reader.isstrict reader.set_mode(isfree, isstrict) elif isinstance(input, str): if isfree is None: isfree = True |