pvl.syslog.filter: fix to override attr from regex
authorTero Marttila <terom@paivola.fi>
Sat, 12 Jan 2013 21:41:32 +0200
changeset 99 8d60eb5604e4
parent 98 b11a8ef6725f
child 100 0f34cf81b9f1
pvl.syslog.filter: fix to override attr from regex
pvl/syslog/filter.py
--- a/pvl/syslog/filter.py	Sat Jan 12 21:41:12 2013 +0200
+++ b/pvl/syslog/filter.py	Sat Jan 12 21:41:32 2013 +0200
@@ -70,8 +70,8 @@
             return False
 
         # as match-values
-        matches = match.groupdict()
-        matches[attr] = match.group(0) # whole match
+        matches = { attr: match.group(0) } # whole match
+        matches.update(match.groupdict())
 
         # TODO match.expand?