[Checkins] SVN: zope.schema/branches/tseaver-test_cleanup/src/zope/schema/_field.py Better compat.
Tres Seaver
cvs-admin at zope.org
Mon Apr 23 21:59:25 UTC 2012
Log message for revision 125255:
Better compat.
Changed:
U zope.schema/branches/tseaver-test_cleanup/src/zope/schema/_field.py
-=-
Modified: zope.schema/branches/tseaver-test_cleanup/src/zope/schema/_field.py
===================================================================
--- zope.schema/branches/tseaver-test_cleanup/src/zope/schema/_field.py 2012-04-23 21:59:18 UTC (rev 125254)
+++ zope.schema/branches/tseaver-test_cleanup/src/zope/schema/_field.py 2012-04-23 21:59:22 UTC (rev 125255)
@@ -143,10 +143,7 @@
ConstraintNotSatisfied: foo y.z bat
"""
- if PY3:
- v = b(uc)
- else:
- v = str(uc)
+ v = binary_type(uc)
self.validate(v)
return v
More information about the checkins
mailing list