[Zope3-checkins] CVS: Zope3/src/zope/security - checker.py:1.7
Steve Alexander
steve@cat-box.net
Sun, 23 Feb 2003 10:18:15 -0500
Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv2650/src/zope/security
Modified Files:
checker.py
Log Message:
More obvious way to get a bool in python 2.3.
Improved comment.
=== Zope3/src/zope/security/checker.py 1.6 => 1.7 ===
--- Zope3/src/zope/security/checker.py:1.6 Thu Jan 30 10:55:04 2003
+++ Zope3/src/zope/security/checker.py Sun Feb 23 10:18:14 2003
@@ -341,7 +341,7 @@
types.NoneType: NoProxy,
str: NoProxy,
unicode: NoProxy,
- type(not 1): NoProxy, # Boolean, if available :)
+ type(True): NoProxy, # Boolean, if available :)
}
class _Sequence(object):
@@ -371,8 +371,8 @@
types.BuiltinMethodType: _callableChecker,
type: _typeChecker,
types.ModuleType: _moduleChecker,
- type(iter([])): _iteratorChecker, # same types in Python 2.2.1,
- type(iter(())): _iteratorChecker, # different in Python 2.3
+ type(iter([])): _iteratorChecker, # Same types in Python 2.2.1,
+ type(iter(())): _iteratorChecker, # different in Python 2.3.
type(iter(_Sequence())): NamesChecker(['next']),
type(Interface): _interfaceChecker,
datetime.timedelta: NamesChecker(['__repr__', '__str__', '__add__',