pvl/syslog/filter.py
changeset 99 8d60eb5604e4
parent 74 952ee07efd7a
child 209 cf883e2e1bff
equal deleted inserted replaced
98:b11a8ef6725f 99:8d60eb5604e4
    68 
    68 
    69         if not match :
    69         if not match :
    70             return False
    70             return False
    71 
    71 
    72         # as match-values
    72         # as match-values
    73         matches = match.groupdict()
    73         matches = { attr: match.group(0) } # whole match
    74         matches[attr] = match.group(0) # whole match
    74         matches.update(match.groupdict())
    75 
    75 
    76         # TODO match.expand?
    76         # TODO match.expand?
    77 
    77 
    78         return matches
    78         return matches
    79 
    79