[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/security/permission.py '==' changed to 'is' for CheckerPublic

Dmitry Vasiliev dima at hlabs.spb.ru
Fri Jul 23 04:19:09 EDT 2004


Log message for revision 26695:
  '==' changed to 'is' for CheckerPublic
  


Changed:
  U   Zope3/trunk/src/zope/app/security/permission.py


-=-
Modified: Zope3/trunk/src/zope/app/security/permission.py
===================================================================
--- Zope3/trunk/src/zope/app/security/permission.py	2004-07-23 08:16:30 UTC (rev 26694)
+++ Zope3/trunk/src/zope/app/security/permission.py	2004-07-23 08:19:09 UTC (rev 26695)
@@ -48,7 +48,7 @@
 
     >>> tearDown()
     """
-    if permission_id == CheckerPublic:
+    if permission_id is CheckerPublic:
         return
     if not zapi.queryUtility(IPermission, permission_id, context=context):
         raise ValueError("Undefined permission id", permission_id)



More information about the Zope3-Checkins mailing list