Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, stream, fn='', short_doc=False):
ft.FortranVisitor.__init__(self)
LatexOutput.__init__(self)
self.stream = stream
self.depth = 0
self.compact = False
self.is_ret_val = False
self.short_doc = short_doc
def __init__(self, prefix, mod_name, types, f90_mod_name=None,
make_package=False, kind_map=None, init_file=None,
py_mod_names=None, class_names=None, max_length=None):
if max_length is None:
max_length = 80
cg.CodeGenerator.__init__(self, indent=' ' * 4,
max_length=max_length,
continuation='\\',
comment='#')
ft.FortranVisitor.__init__(self)
self.prefix = prefix
self.py_mod_name = mod_name
self.py_mod_names = py_mod_names
self.class_names = class_names
if f90_mod_name is None:
f90_mod_name = '_' + mod_name
self.f90_mod_name = f90_mod_name
self.types = types
self.imports = set()
self.make_package = make_package
if kind_map is None:
kind_map = {}
self.kind_map = kind_map
self.init_file = init_file
def __init__(self, prefix, sizeof_fortran_t, string_lengths, abort_func,
kind_map, types, default_to_inout, max_length=None):
if max_length is None:
max_length = 120
cg.CodeGenerator.__init__(self, indent=' ' * 4,
max_length=max_length,
continuation='&',
comment='!')
ft.FortranVisitor.__init__(self)
self.prefix = prefix
self.sizeof_fortran_t = sizeof_fortran_t
self.string_lengths = string_lengths
self.abort_func = abort_func
self.kind_map = kind_map
self.types = types
self.default_to_inout = default_to_inout