SVN: r23187 - trunk/quixote

Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Mon, 17 Nov 2003 13:16:20 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: nascheme
Date: 2003-11-17 13:16:20 -0500 (Mon, 17 Nov 2003)
New Revision: 23187

Modified:
   trunk/quixote/_py_htmltext.py
Log:
longs don't need to be escaped


Modified: trunk/quixote/_py_htmltext.py
===================================================================
--- trunk/quixote/_py_htmltext.py	2003-11-17 18:13:41 UTC (rev 23186)
+++ trunk/quixote/_py_htmltext.py	2003-11-17 18:16:20 UTC (rev 23187)
@@ -6,7 +6,8 @@
 #$Id$
 
 import sys
-from types import UnicodeType, TupleType, StringType, IntType, FloatType
+from types import UnicodeType, TupleType, StringType, IntType, FloatType, \
+    LongType
 import re
 
 if sys.hexversion < 0x20200b1:
@@ -171,8 +172,9 @@
 def _wraparg(klass, arg):
     if (classof(arg) is klass or
         isinstance(arg, IntType) or
+        isinstance(arg, LongType) or
         isinstance(arg, FloatType)):
-        # ints, floats, and htmltext are okay
+        # ints, longs, floats, and htmltext are okay
         return arg
     else:
         # everything is gets wrapped