From 6a615abdf186298848feb27198710f0df6015ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Ram=C3=ADrez?= Date: Sun, 21 Jul 2013 12:53:33 -0600 Subject: [PATCH] Remove _style_file. --- __init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 48f6266..0fbc348 100644 --- a/__init__.py +++ b/__init__.py @@ -88,7 +88,6 @@ class Render(): _working_template = None _unpacked_template = None _packed_template = None - _content_file = None _mimetype = '' @@ -156,7 +155,6 @@ class Render(): """ # Save rendered content and headers - self._content_file = self.content.toxml().encode('ascii', 'xmlcharrefreplace') self.rendered = StringIO.StringIO() self._packed_template = zipfile.ZipFile(self.rendered, 'a') @@ -169,7 +167,7 @@ class Render(): mimetype = self._mimetype if zip_file.filename == 'content.xml': - out = self._content_file + out = self.content.toxml().encode('ascii', 'xmlcharrefreplace') if zip_file.filename == 'styles.xml': out = self.styles.toxml().encode('ascii', 'xmlcharrefreplace')