Mercurial > piecrust2
changeset 423:f4f5685019a2
render: Lazily import Textile package.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 25 Jun 2015 08:31:24 -0700 |
parents | a8a12f97addf |
children | 5feb71d31a4f |
files | piecrust/formatting/textileformatter.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/formatting/textileformatter.py Sat Jun 20 23:54:57 2015 -0700 +++ b/piecrust/formatting/textileformatter.py Thu Jun 25 08:31:24 2015 -0700 @@ -1,4 +1,3 @@ -from textile import textile from piecrust.formatting.base import Formatter @@ -7,6 +6,7 @@ OUTPUT_FORMAT = 'html' def render(self, format_name, text): + from textile import textile assert format_name in self.FORMAT_NAMES return textile(text)