ext/html4zope.py
changeset 8697 574bb05e40a4
parent 5424 8ecbcbff9777
--- a/ext/html4zope.py	Thu Feb 14 16:01:24 2013 +0100
+++ b/ext/html4zope.py	Thu Feb 14 16:45:07 2013 +0100
@@ -123,14 +123,14 @@
 
     def visit_reference(self, node):
         """syt: i want absolute urls"""
-        if node.has_key('refuri'):
+        if 'refuri' in node:
             href = node['refuri']
             if ( self.settings.cloak_email_addresses
                  and href.startswith('mailto:')):
                 href = self.cloak_mailto(href)
                 self.in_mailto = 1
         else:
-            assert node.has_key('refid'), \
+            assert 'refid' in node, \
                    'References must have "refuri" or "refid" attribute.'
             href = '%s#%s' % (self.base_url, node['refid'])
         atts = {'href': href, 'class': 'reference'}