Commit f2bb2144 authored by Tres Seaver's avatar Tres Seaver

- Remove buglet introduced by unneeded backwards compatibility.

parent 975df1de
......@@ -12,8 +12,8 @@
##############################################################################
__doc__='''Zope-specific versions of ZTUTils classes
$Id: Zope.py,v 1.13 2003/10/24 20:16:08 evan Exp $'''
__version__='$Revision: 1.13 $'[11:-2]
$Id: Zope.py,v 1.14 2004/01/27 14:39:34 tseaver Exp $'''
__version__='$Revision: 1.14 $'[11:-2]
import sys, cgi, urllib, cgi
from Tree import encodeExpansion, decodeExpansion, TreeMaker
......@@ -36,11 +36,7 @@ except ImportError:
else:
from AccessControl import Unauthorized
# Support pre-Python 2.3 :-(
try:
from types import BooleanType
except ImportError:
BooleanType = None
from types import BooleanType
class LazyFilter(Lazy):
# A LazyFilter that checks with the security policy
......@@ -261,7 +257,7 @@ def complex_marshal(pairs):
def simple_marshal(v):
if isinstance(v, StringType):
return ''
if BooleanType and isinstance(v, BooleanType):
if isinstance(v, BooleanType):
return ':boolean'
if isinstance(v, IntType):
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