# HG changeset patch # User Ludovic Chabant # Date 1458755610 25200 # Node ID 0c688063890f2e18255ba52462d25abe263834a7 # Parent b917ae0719940669512b69dca9de6eb0aabf7111 formatting: Don't import `hoedown` until we need it. diff -r b917ae071994 -r 0c688063890f piecrust/formatting/hoedownformatter.py --- 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.