[Checkins] SVN: zope.schema/trunk/src/zope/schema/_field.py Use parentheses instead of \ in the or expression.
Dan Korostelev
nadako at gmail.com
Tue Mar 10 09:56:23 EDT 2009
Log message for revision 97802:
Use parentheses instead of \ in the or expression.
Changed:
U zope.schema/trunk/src/zope/schema/_field.py
-=-
Modified: zope.schema/trunk/src/zope/schema/_field.py
===================================================================
--- zope.schema/trunk/src/zope/schema/_field.py 2009-03-10 13:45:53 UTC (rev 97801)
+++ zope.schema/trunk/src/zope/schema/_field.py 2009-03-10 13:56:23 UTC (rev 97802)
@@ -263,8 +263,8 @@
# initialized. Therefore signal the validation method to ignore
# default value checks during initialization of a Choice tied to a
# registered vocabulary.
- self._init_field = bool(self.vocabularyName) or \
- IContextSourceBinder.providedBy(self.vocabulary)
+ self._init_field = (bool(self.vocabularyName) or
+ IContextSourceBinder.providedBy(self.vocabulary))
super(Choice, self).__init__(**kw)
self._init_field = False
More information about the Checkins
mailing list