minor cleanup: don't use builtin 'id' as variable name stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 18 Feb 2010 11:06:40 +0100
branchstable
changeset 4627 54de0ddd0bf3
parent 4626 c26b4df9fc90
child 4628 2f23148d0870
minor cleanup: don't use builtin 'id' as variable name
web/formwidgets.py
--- a/web/formwidgets.py	Thu Feb 18 10:57:50 2010 +0100
+++ b/web/formwidgets.py	Thu Feb 18 11:06:40 2010 +0100
@@ -164,9 +164,9 @@
         assert self.suffix is None, 'suffix not supported'
         values, attrs = self.values_and_attributes(form, field)
         assert len(values) == 1
-        id = attrs.pop('id')
+        domid = attrs.pop('id')
         inputs = [tags.input(name=field.input_name(form),
-                             value=values[0], type=self.type, id=id, **attrs),
+                             value=values[0], type=self.type, id=domid, **attrs),
                   '<br/>',
                   tags.input(name=field.input_name(form, '-confirm'),
                              value=values[0], type=self.type, **attrs),