--- /home/ak/Desktop/airspeed.py	2005-02-04 11:23:20.000000000 +0100
+++ airspeed.py	2005-02-04 12:35:42.407806912 +0100
@@ -2,8 +2,9 @@
 
 import re, operator, os
 
-try: import cStringIO as StringIO
-except ImportError: import StringIO
+#try: import cStringIO as StringIO
+#except ImportError: import StringIO
+import StringIO
 
 __all__ = ['Template', 'TemplateError', 'TemplateSyntaxError', 'CachingFileLoader']
 
@@ -405,7 +406,10 @@
         if value is None:
             if self.silent: value = ''
             else: value = self.my_text()
-        stream.write(str(value))
+        if not isinstance(value, basestring):
+            stream.write(str(value))
+        else:
+            stream.write(value)
 
 
 class SimpleReference(_Element):
