[Checkins] SVN: zope.app.form/branches/faassen-zaf/src/zope/app/form/utility.py A few pyflakes inspired cleanups (but we don't bother to fix all of them)
Martijn Faassen
faassen at startifact.com
Wed Dec 30 15:23:25 EST 2009
Log message for revision 107384:
A few pyflakes inspired cleanups (but we don't bother to fix all of them)
Changed:
U zope.app.form/branches/faassen-zaf/src/zope/app/form/utility.py
-=-
Modified: zope.app.form/branches/faassen-zaf/src/zope/app/form/utility.py
===================================================================
--- zope.app.form/branches/faassen-zaf/src/zope/app/form/utility.py 2009-12-30 20:21:02 UTC (rev 107383)
+++ zope.app.form/branches/faassen-zaf/src/zope/app/form/utility.py 2009-12-30 20:23:24 UTC (rev 107384)
@@ -34,26 +34,21 @@
"""
__docformat__ = 'restructuredtext'
-from zope import component
from zope import security
from zope.security.proxy import Proxy
from zope.proxy import isProxy
from zope.interface.interfaces import IMethod
from zope.security.interfaces import ForbiddenAttribute, Unauthorized
-from zope.schema import getFieldsInOrder
-from zope.formlib.interfaces import IWidget
from zope.formlib.interfaces import WidgetsError, MissingInputError
from zope.formlib.interfaces import InputErrors
from zope.formlib.interfaces import IInputWidget, IDisplayWidget
-from zope.formlib.interfaces import IWidgetFactory
from zope.formlib.utility import (
setUpWidget,
setUpWidgets,
applyWidgetsChanges,
_fieldlist,
no_value,
- _widgetHasStickyValue,
- applyWidgetsChanges)
+ _widgetHasStickyValue)
def setUpEditWidgets(view, schema, source=None, prefix=None,
ignoreStickyValues=False, names=None, context=None,
@@ -90,7 +85,7 @@
value = field.get(source)
except ForbiddenAttribute:
raise
- except AttributeError, v:
+ except AttributeError:
value = no_value
except Unauthorized:
if degradeDisplay:
@@ -157,7 +152,7 @@
value = field.get(source)
except ForbiddenAttribute:
raise
- except AttributeError, v:
+ except AttributeError:
value = no_value
except Unauthorized:
if degradeDisplay:
More information about the checkins
mailing list