# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1266487600 -3600
# Node ID 54de0ddd0bf3180c700d6390d8511bb6f9514d21
# Parent  c26b4df9fc90d601d9257d3e9eb4ab4beb86bb12
minor cleanup: don't use builtin 'id' as variable name

diff -r c26b4df9fc90 -r 54de0ddd0bf3 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),