diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-22 21:49:10 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-01-03 11:31:54 +0900 |
commit | 1926193ff056b97671bb08378bacb9732dad6058 (patch) | |
tree | 1789300349380b53403d13bf23ed932bee7bcf0f /sphinx/cmd/quickstart.py | |
parent | 30e51bf3ce58417d6f9888dbbc1b3af854731072 (diff) | |
download | sphinx-git-1926193ff056b97671bb08378bacb9732dad6058.tar.gz |
refactor: Use repr() to make escaped string in template for conf.py
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r-- | sphinx/cmd/quickstart.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index 76e9254fb..d7465b731 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -395,13 +395,6 @@ def generate(d, overwrite=True, silent=False, templatedir=None): d['project_doc_texescaped'] = (d['project'] + ' Documentation').\ translate(texescape.tex_escape_map) - # escape backslashes and single quotes in strings that are put into - # a Python string literal - for key in ('project', 'project_doc', 'project_doc_texescaped', - 'author', 'author_texescaped', 'copyright', - 'version', 'release', 'master'): - d[key + '_str'] = d[key].replace('\\', '\\\\').replace("'", "\\'") - ensuredir(d['path']) srcdir = d['sep'] and path.join(d['path'], 'source') or d['path'] |