[Zope3-checkins] CVS: Zope3/src/zope/app/security -
_protections.py:1.6
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:11:01 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv30992/src/zope/app/security
Modified Files:
_protections.py
Log Message:
Fixed a memory leak (in testing).
=== Zope3/src/zope/app/security/_protections.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/security/_protections.py:1.5 Sun Sep 21 13:32:43 2003
+++ Zope3/src/zope/app/security/_protections.py Fri Nov 21 12:11:00 2003
@@ -114,4 +114,6 @@
# add __parent__ and __name__ to always available names
import zope.security.checker
- zope.security.checker._always_available.extend(['__name__', '__parent__'])
+ for name in ['__name__', '__parent__']:
+ if name not in zope.security.checker._always_available:
+ zope.security.checker._always_available.append(name)
More information about the Zope3-Checkins
mailing list