6599: Fix python3 error
svn: r21945
This commit is contained in:
parent
aa0e413d5f
commit
36f27ebefb
@ -84,7 +84,7 @@ class FilterParser(handler.ContentHandler):
|
||||
self.f.set_comment(attrs['comment'])
|
||||
self.gfilter_list.add(self.namespace, self.f)
|
||||
elif tag == "rule":
|
||||
if attrs.has_key('use_regex'):
|
||||
if 'use_regex' in attrs:
|
||||
self.use_regex = attrs['use_regex'] == 'True'
|
||||
else:
|
||||
self.use_regex = False
|
||||
|
Loading…
Reference in New Issue
Block a user