'Find a definition in a builtin file'

def find_in_builtin(self, info):

    module_path = info['module_path']
    line_nr = info['line_nr']
    ext = osp.splitext(info['module_path'])[1]
    desc = info['description']
    name = info['name']
    if ((ext in self.python_like_exts()) and (desc.startswith('import    ') or desc.startswith('from    '))):
        path = self.python_like_mod_finder(desc, osp.dirname(module_path), name)
        if path:
            info['module_path'] = module_path = path
            info['line_nr'] = line_nr = 1
    if (ext in self.all_editable_exts()):
        pattern = 'from.*\\W{0}\\W?.*c?import|import.*\\W{0}'
        if (not re.match(pattern.format(info['name']), desc)):
            line_nr = self.get_definition_from_file(module_path, name, line_nr)
            if (not line_nr):
                module_path = None
    if (not (ext in self.all_editable_exts())):
        line_nr = None
    return (module_path, line_nr)
