view.py
branchtls-sprint
changeset 1424 0a440312913b
parent 1421 77ee26df178f
child 1432 2c3711d4570b
--- a/view.py	Wed Apr 22 16:55:09 2009 +0200
+++ b/view.py	Wed Apr 22 16:55:46 2009 +0200
@@ -426,17 +426,12 @@
             return STRICT_DOCTYPE
         return STRICT_DOCTYPE_NOEXT
 
-    def set_stream(self, w=None, templatable=True):
-        if templatable and self.w is not None:
+    def set_stream(self, w=None):
+        if self.w is not None:
             return
-
         if w is None:
             if self.binary:
                 self._stream = stream = StringIO()
-            elif not templatable:
-                # not templatable means we're using a non-html view, we don't
-                # want the HTMLStream stuff to interfere during data generation
-                self._stream = stream = UStringIO()
             else:
                 self._stream = stream = HTMLStream(self.req)
             w = stream.write