6599: Fix python3 error

svn: r21945
This commit is contained in:
Nick Hall 2013-04-10 17:39:31 +00:00
parent aa0e413d5f
commit 36f27ebefb

View File

@ -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