27
27
def transform(self, node, results):
29
29
func = results['func'][0]
31
31
dot, it = (results['dot'], results['it'])
35
35
# Replace the node wich contains ('.', 'function') with the
36
36
# function (to be consistant with the second part of the pattern)
38
38
func.parent.replace(func)
41
41
func.replace(Name(func.value[1:], prefix=prefix))