Commits

Andriy Kornatskyy committed 2eeaad7

Minor clean up

Comments (0)

Files changed (3)

src/wheezy/html/builder.py

     def error(self):
         if self.errors:
             return Tag('span', self.errors[-1], {
-                'class_': CSS_CLASS_ERROR
+                'class': CSS_CLASS_ERROR
             })
         else:
             return ''

src/wheezy/html/factory.py

     def info(self, text, class_=CSS_CLASS_INFO_MESSAGE):
         if text:
             return Tag('span', html_escape(text), {
-                'class_': class_
+                'class': class_
             })
         else:
             return ''

src/wheezy/html/widgets.py

     elements = []
     append = elements.append
     for key, text in choices:
-        i = id(name) + '-' + key
-        tag_attrs={
+        tag_attrs = {
                 'name': name,
                 'type': 'radio',
                 'value': key