Commit f2bb2144 authored by Tres Seaver's avatar Tres Seaver

- Remove buglet introduced by unneeded backwards compatibility.

parent 975df1de
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__='''Zope-specific versions of ZTUTils classes __doc__='''Zope-specific versions of ZTUTils classes
$Id: Zope.py,v 1.13 2003/10/24 20:16:08 evan Exp $''' $Id: Zope.py,v 1.14 2004/01/27 14:39:34 tseaver Exp $'''
__version__='$Revision: 1.13 $'[11:-2] __version__='$Revision: 1.14 $'[11:-2]
import sys, cgi, urllib, cgi import sys, cgi, urllib, cgi
from Tree import encodeExpansion, decodeExpansion, TreeMaker from Tree import encodeExpansion, decodeExpansion, TreeMaker
...@@ -36,11 +36,7 @@ except ImportError: ...@@ -36,11 +36,7 @@ except ImportError:
else: else:
from AccessControl import Unauthorized from AccessControl import Unauthorized
# Support pre-Python 2.3 :-( from types import BooleanType
try:
from types import BooleanType
except ImportError:
BooleanType = None
class LazyFilter(Lazy): class LazyFilter(Lazy):
# A LazyFilter that checks with the security policy # A LazyFilter that checks with the security policy
...@@ -261,7 +257,7 @@ def complex_marshal(pairs): ...@@ -261,7 +257,7 @@ def complex_marshal(pairs):
def simple_marshal(v): def simple_marshal(v):
if isinstance(v, StringType): if isinstance(v, StringType):
return '' return ''
if BooleanType and isinstance(v, BooleanType): if isinstance(v, BooleanType):
return ':boolean' return ':boolean'
if isinstance(v, IntType): if isinstance(v, IntType):
return ':int' return ':int'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment