James Crasta  committed 503f53e

Minor cleanup to make __contains__ clearer

  • Participants
  • Parent commits ab42a93

Comments (0)

Files changed (1)

File wtforms/

         """ Iterate form fields in arbitrary order """
         return self._fields.itervalues()
-    def __contains__(self, item):
+    def __contains__(self, name):
         """ Returns `True` if the named field is a member of this form. """
-        return (item in self._fields)
+        return (name in self._fields)
     def __getitem__(self, name):
         """ Dict-style access to this form's fields."""