def __init__(self, module_ast, used_variables): ASTModifier.__init__(self, modify_expressions=False) self.dummy_assign = None # dummy assignment statement, eg. $i = $i (using some variable $i that it finds in the script) self.pass_num = 1 self.traverse(module_ast) self.pass_num = 2 self.traverse(module_ast)
def __init__(self, module_ast, used_variables): ASTModifier.__init__(self) self.used_variables = used_variables self.traverse(module_ast)
def __init__(self, module_ast, used_functions): ASTModifier.__init__(self, modify_expressions=False) self.used_functions = used_functions self.traverse(module_ast)
def __init__(self, module_ast): ASTModifier.__init__(self) self.traverse(module_ast)
def __init__(self, module_ast, replace_constants=True): ASTModifier.__init__(self) self.replace_constants = replace_constants self.traverse(module_ast)