[Zope-Checkins] CVS: Zope/lib/python/AccessControl - ImplPython.py:1.4

Jim Fulton jim at zope.com
Wed Feb 18 06:24:50 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv28847/lib/python/AccessControl

Modified Files:
	ImplPython.py 
Log Message:
Simplified some logic.  We bothered to reset the name variable to
string roles only of the values were different. This was a needless
optimization. Then we preceeded to reset the roles value even though
it wasn't used again.


=== Zope/lib/python/AccessControl/ImplPython.py 1.3 => 1.4 ===
--- Zope/lib/python/AccessControl/ImplPython.py:1.3	Tue Jan 27 12:09:53 2004
+++ Zope/lib/python/AccessControl/ImplPython.py	Wed Feb 18 06:24:49 2004
@@ -68,11 +68,7 @@
                 # with the new permission name.  If the permission
                 # name is '', then treat as private!
                 if roles:
-                    if roles != n:
-                        n = roles
-                    # If we find a name that is the same as the
-                    # current name, we just ignore it.
-                    roles = None
+                    n = roles
                 else:
                     return _what_not_even_god_should_do
 




More information about the Zope-Checkins mailing list