[Zope-Checkins] CVS: Zope/lib/python/AccessControl -
SimpleObjectPolicies.py:1.12.70.5
Fred L. Drake, Jr.
fred at zope.com
Tue Jan 27 16:49:05 EST 2004
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv19688
Modified Files:
Tag: Zope-2_7-branch
SimpleObjectPolicies.py
Log Message:
we don't need to import the types module any more
=== Zope/lib/python/AccessControl/SimpleObjectPolicies.py 1.12.70.4 => 1.12.70.5 ===
--- Zope/lib/python/AccessControl/SimpleObjectPolicies.py:1.12.70.4 Tue Jan 27 15:43:58 2004
+++ Zope/lib/python/AccessControl/SimpleObjectPolicies.py Tue Jan 27 16:49:04 2004
@@ -73,7 +73,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."""
@@ -109,7 +108,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