diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-18 02:32:06 +0100 |
---|---|---|
committer | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-22 04:21:12 +0100 |
commit | 55669f6cfc03e96cee236dc9b9cdeb1deb31cef0 (patch) | |
tree | 4578b4b0b93346e2356de779cf4c0c06f31e0668 /sphinx/cmd/quickstart.py | |
parent | c08bffde98391a193debbeaee9af8c4f5ef8c77f (diff) | |
download | sphinx-git-55669f6cfc03e96cee236dc9b9cdeb1deb31cef0.tar.gz |
Specify encoding
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r-- | sphinx/cmd/quickstart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index e8b446d40..5e9c2b470 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -367,7 +367,7 @@ def generate(d: Dict, overwrite: bool = True, silent: bool = False, templatedir: conf_path = os.path.join(templatedir, 'conf.py_t') if templatedir else None if not conf_path or not path.isfile(conf_path): conf_path = os.path.join(package_dir, 'templates', 'quickstart', 'conf.py_t') - with open(conf_path) as f: + with open(conf_path, encoding="utf-8") as f: conf_text = f.read() write_file(path.join(srcdir, 'conf.py'), template.render_string(conf_text, d)) |