diff options
Diffstat (limited to 'sphinx/util/fileutil.py')
-rw-r--r-- | sphinx/util/fileutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/fileutil.py b/sphinx/util/fileutil.py index 0a77ecef7..df6bd051b 100644 --- a/sphinx/util/fileutil.py +++ b/sphinx/util/fileutil.py @@ -49,10 +49,10 @@ def copy_asset_file(source, destination, context=None, renderer=None): from sphinx.util.template import SphinxRenderer renderer = SphinxRenderer() - with open(source, encoding='utf-8') as fsrc: # type: ignore + with open(source, encoding='utf-8') as fsrc: if destination.lower().endswith('_t'): destination = destination[:-2] - with open(destination, 'w', encoding='utf-8') as fdst: # type: ignore + with open(destination, 'w', encoding='utf-8') as fdst: fdst.write(renderer.render_string(fsrc.read(), context)) else: copyfile(source, destination) |