[Zope-Checkins] CVS: Zope/lib/python/AccessControl - SimpleObjectPolicies.py:1.16

Fred L. Drake, Jr. fred at zope.com
Tue Jan 27 16:39:35 EST 2004


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

Modified Files:
	SimpleObjectPolicies.py 
Log Message:
we don't need to import the types module any more


=== Zope/lib/python/AccessControl/SimpleObjectPolicies.py 1.15 => 1.16 ===
--- Zope/lib/python/AccessControl/SimpleObjectPolicies.py:1.15	Tue Jan 27 15:44:04 2004
+++ Zope/lib/python/AccessControl/SimpleObjectPolicies.py	Tue Jan 27 16:39:34 2004
@@ -94,7 +94,6 @@
 
 Containers = ContainerAssertions.get
 
-from types import IntType, DictType, TypeType, ListType
 def allow_type(Type, allowed=1):
     """Allow a type and all of its methods and attributes to be used from
     restricted code.  The argument Type must be a type."""
@@ -130,7 +129,7 @@
     tree = tree_type()
     key_type = type(tree.keys())
 
-    if key_type is not ListType: # lists have their own declarations
+    if key_type is not list: # lists have their own declarations
         allow_type(key_type)
 
     if has_values:




More information about the Zope-Checkins mailing list