human
Solve the following python programming problem given the following code:
@ param.parameterized.bothmethod 
def regexp_filter(self_or_cls, pattern) : 
    '
        Builds a parameter filter using the supplied pattern (may be a
        general Python regular expression)
        ' 
    def inner_filter(name, p) : 
        name_match = re.search (pattern, name) 
        if (name_match is not None) : 
            return True 
doc_match = re.search (pattern, p.doc) 
        if (doc_match is not None) : 
            return True 
return False 
return self_or_cls 

    
    

    Fix the buggy line: return self_or_cls
assistant
#Here is Python code to fix the buggy line: return self_or_cls
.

return def inner_filter(