diff MoinMoin/util/forms.py @ 1983:bb2f526d961c

fix some stuff discovered by pycharm code inspection some changes fix yet undiscovered bugs (e.g. due to wrong names), other changes are rather cosmetic or improve docstrings.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 11 Feb 2013 18:48:03 +0100
parents 384555088cab
children eca842df2ec4
line wrap: on
line diff
--- a/MoinMoin/util/forms.py	Mon Feb 11 14:34:12 2013 +0100
+++ b/MoinMoin/util/forms.py	Mon Feb 11 18:48:03 2013 +0100
@@ -37,7 +37,7 @@
 
 
 def required_filter(tagname, attributes, contents, context, bind):
-    if (bind is not None and not bind.optional):
+    if bind is not None and not bind.optional:
         attributes[u'class'] = u'required'
         if tagname == 'input':
             attributes[u'required'] = u'required'