[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate - TALES.py:1.2.2.2
Barry Warsaw
barry@wooz.org
Fri, 14 Jun 2002 12:31:14 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv15762
Modified Files:
Tag: srichter-z3-unicode-branch
TALES.py
Log Message:
evaluateText(): Use isinstance instead type comparisons.
=== Zope3/lib/python/Zope/PageTemplate/TALES.py 1.2.2.1 => 1.2.2.2 ===
if text is _default or text is None:
return text
- if type(text) not in StringTypes:
+ if not isinstance(text, StringTypes):
text = unicode(text)
return text