# HG changeset patch # User Ludovic Chabant # Date 1435246284 25200 # Node ID f4f5685019a2c722980c0294b4daab6e94d4a58e # Parent a8a12f97addf078c1c444b950f7391be67d9ef65 render: Lazily import Textile package. diff -r a8a12f97addf -r f4f5685019a2 piecrust/formatting/textileformatter.py --- 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)