Mercurial > piecrust2
diff piecrust/formatting/hoedownformatter.py @ 695:0c688063890f
formatting: Don't import `hoedown` until we need it.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 23 Mar 2016 10:53:30 -0700 |
parents | b917ae071994 |
children | 8adc27285d93 |
line wrap: on
line diff
--- a/piecrust/formatting/hoedownformatter.py Wed Mar 23 08:35:51 2016 -0700 +++ b/piecrust/formatting/hoedownformatter.py Wed Mar 23 10:53:30 2016 -0700 @@ -1,5 +1,4 @@ import logging -import hoedown from piecrust.formatting.base import Formatter @@ -23,6 +22,8 @@ if self._formatter is not None: return + import hoedown + # Don't show warnings once for each worker when baking, so only # show them for the first. If the variable is not set, we're not # baking so do show them either way.