From 593708a39cda458386b6c7352bebb62df6191af7 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Fri, 8 Jul 2016 00:14:13 +0900 Subject: [PATCH] Fix importing error --- sphinx/util/fileutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/util/fileutil.py b/sphinx/util/fileutil.py index fd7ebe05b..d11ae9f1b 100644 --- a/sphinx/util/fileutil.py +++ b/sphinx/util/fileutil.py @@ -13,7 +13,6 @@ import codecs import posixpath from docutils.utils import relative_path from sphinx.util.osutil import copyfile, ensuredir, walk -from sphinx.util.template import SphinxRenderer def copy_asset_file(source, destination, context=None, renderer=None): @@ -36,6 +35,7 @@ def copy_asset_file(source, destination, context=None, renderer=None): if source.lower().endswith('_t') and context: if renderer is None: + from sphinx.util.template import SphinxRenderer renderer = SphinxRenderer() with codecs.open(source, 'r', encoding='utf-8') as fsrc: