[Zope3-checkins] CVS: Zope3/src/zope/pagetemplate - pagetemplate.py:1.4

Fred L. Drake, Jr. fred@zope.com
Wed, 2 Apr 2003 13:22:39 -0500


Update of /cvs-repository/Zope3/src/zope/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv19891

Modified Files:
	pagetemplate.py 
Log Message:
Clean up coding style, line width.


=== Zope3/src/zope/pagetemplate/pagetemplate.py 1.3 => 1.4 ===
--- Zope3/src/zope/pagetemplate/pagetemplate.py:1.3	Tue Mar 25 06:23:10 2003
+++ Zope3/src/zope/pagetemplate/pagetemplate.py	Wed Apr  2 13:22:39 2003
@@ -203,8 +203,10 @@
 
 class TemplateUsage:
     def __init__(self, value):
-        if type(value) <> type(u''):
-            raise TypeError('TemplateUsage should be initialized with a Unicode string : %s' % repr(value))
+        if not isinstance(value, unicode):
+            raise TypeError(
+                'TemplateUsage should be initialized with a Unicode string: %s'
+                % repr(value))
         self.stringValue = value
 
     def __str__(self):