diff markup/core.py @ 133:b9a0031d4bbb

Minor cleanup and performance improvement for the builder module.
author cmlenz
date Sun, 06 Aug 2006 17:10:47 +0000
parents 93bbdcf9428b
children 636e0100fcaf
line wrap: on
line diff
--- a/markup/core.py
+++ b/markup/core.py
@@ -197,7 +197,9 @@
         """Return whether the list includes an attribute with the specified
         name.
         """
-        return name in [attr for attr, _ in self]
+        for attr, _ in self:
+            if attr == name:
+                return True
 
     def get(self, name, default=None):
         """Return the value of the attribute with the specified name, or the
Copyright (C) 2012-2017 Edgewall Software