6599: Fix python3 error

svn: r21944
This commit is contained in:
Nick Hall 2013-04-10 17:39:19 +00:00
parent f4aecf48c1
commit f6b043da6f

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