[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - Proxy.py:1.1.2.12

Fred L. Drake, Jr. fdrake@acm.org
Mon, 22 Apr 2002 15:51:26 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Security
In directory cvs.zope.org:/tmp/cvs-serv14448

Modified Files:
      Tag: SecurityProxy-branch
	Proxy.py 
Log Message:
Remove unnecessary imports.  Clean up whitespace.

=== Zope3/lib/python/Zope/Security/Proxy.py 1.1.2.11 => 1.1.2.12 ===
 from ISecurityProxyFactory import ISecurityProxyFactory
 from _Proxy import _Proxy
-from types import InstanceType, ClassType, FunctionType, MethodType, ModuleType
 from Zope.Exceptions import DuplicationError
 
 def Proxy(object, checker=None):
-    if checker is None:        
+    if checker is None:
         checker = getChecker(type(object), _defaultChecker)
         if checker is NoProxy:
             return object
@@ -41,8 +40,5 @@
     return _Proxy(object, checker)
 
 Proxy.__implements__ = ISecurityProxyFactory
-
-from Checker import Checker
-_defaultChecker = Checker({}.get)
 
 from CheckerRegistry import getChecker, NoProxy