Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-08-07 17:37:28 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-10-07 14:47:28 +0300
commitaf1e089472d7b28467c6868d25d7eae199c115d3 (patch)
tree2260ae4f38700bb4417cd94e9a0349e61e3c96d2 /sphinx/util/fileutil.py
parentef97997070c8f75e8adb6022bb9e836ed89c10da (diff)
refactor: Separate message catalogs to sphinxmessage.sty
Diffstat (limited to 'sphinx/util/fileutil.py')
-rw-r--r--sphinx/util/fileutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/fileutil.py b/sphinx/util/fileutil.py
index d098e4842..7dc376807 100644
--- a/sphinx/util/fileutil.py
+++ b/sphinx/util/fileutil.py
@@ -43,7 +43,7 @@ def copy_asset_file(source, destination, context=None, renderer=None):
# Use source filename if destination points a directory
destination = os.path.join(destination, os.path.basename(source))
- if source.lower().endswith('_t') and context:
+ if source.lower().endswith('_t') and context is not None:
if renderer is None:
from sphinx.util.template import SphinxRenderer
renderer = SphinxRenderer()