[Checkins] SVN: zope.exceptions/trunk/ Fixed optional dependency code for `zope.security` to work under Python 3.3.
Hano Schlichting
cvs-admin at zope.org
Mon Aug 20 15:18:18 UTC 2012
Log message for revision 127533:
Fixed optional dependency code for `zope.security` to work under Python 3.3.
Changed:
U zope.exceptions/trunk/CHANGES.txt
U zope.exceptions/trunk/src/zope/exceptions/__init__.py
-=-
Modified: zope.exceptions/trunk/CHANGES.txt
===================================================================
--- zope.exceptions/trunk/CHANGES.txt 2012-08-20 15:03:17 UTC (rev 127532)
+++ zope.exceptions/trunk/CHANGES.txt 2012-08-20 15:18:14 UTC (rev 127533)
@@ -4,7 +4,7 @@
4.0.1 (unreleased)
------------------
-- TBD
+- Fixed optional dependency code for `zope.security` to work under Python 3.3.
4.0.0.1 (2012-05-16)
Modified: zope.exceptions/trunk/src/zope/exceptions/__init__.py
===================================================================
--- zope.exceptions/trunk/src/zope/exceptions/__init__.py 2012-08-20 15:03:17 UTC (rev 127532)
+++ zope.exceptions/trunk/src/zope/exceptions/__init__.py 2012-08-20 15:18:14 UTC (rev 127533)
@@ -30,7 +30,7 @@
import zope.security
except ImportError as v: #pragma NO COVER
# "ImportError: No module named security"
- if not str(v).endswith('security'):
+ if 'security' not in str(v):
raise
else: #pragma NO COVER
from zope.security.interfaces import IUnauthorized
More information about the checkins
mailing list