human
Solve the following python programming problem given the following code:
def _remove_indents_from_function(code) : 
    "Remove leading indents from the function's source code.

    Otherwise an exec later when running the function would complain about
    the indents.
    " 
    def swap_tabs_to_spaces(line) : 
        new_line = '' 
        for i in xrange (0, len (line)) : 
            if (line [i] == ' ') : 
                new_line += line [i] 
else : 
                if (line [i] == '\t') : 
                    new_line += (' ' * 8) 
else : 
                    new_line += line [i : len (line)] 
                    break 
return new_line 
lines = code.split ('
') 
    indent = (- 1) 
    for line in lines : 
        m = re.match ('^([\t]*)def\\s.*$', line) 
        if m : 
            indent = len (swap_tabs_to_spaces (m.group (1))) 
            break 
if (indent < 0) : 
        raise Exception ('No def found for function source') 
result = '' 
    for line in lines : 
        line = swap_tabs_to_spaces (line) 
        i = 0 
        while (i < len (line)) : 
            if ((i < indent) and (line [i] == ' ')) : 
                i += 1 
else : 
                break 
result += (line [i : len (m)] + '
') 
return result 

    
    

    Fix the buggy line: result += (line [i : len (m)] + '
')
assistant
#Here is Python code to fix the buggy line: result += (line [i : len (m)] + '
.

result += (line [i : len (line)] + '
')