diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-01-07 19:00:30 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-11 08:06:02 +0300 |
commit | e799f94d24388fc54f33124cfd705f9b53dd3619 (patch) | |
tree | 45fc4f9b7549688f986586cacddf29ae6d22f70c /sphinx/cmd | |
parent | 057ef31182453b488fe65a329b328545a2bcf753 (diff) |
Remove unused template variables
Diffstat (limited to 'sphinx/cmd')
-rw-r--r-- | sphinx/cmd/quickstart.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index d7465b731..6639bf7e9 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -17,7 +17,6 @@ import time import warnings from collections import OrderedDict from os import path -from urllib.parse import quote # try to import readline, unix specific enhancement try: @@ -37,11 +36,10 @@ import sphinx.locale from sphinx import __display_version__, package_dir from sphinx.deprecation import RemovedInSphinx40Warning from sphinx.locale import __ -from sphinx.util import texescape from sphinx.util.console import ( # type: ignore colorize, bold, red, turquoise, nocolor, color_terminal ) -from sphinx.util.osutil import ensuredir, make_filename +from sphinx.util.osutil import ensuredir from sphinx.util.template import SphinxRenderer if False: @@ -375,25 +373,15 @@ def generate(d, overwrite=True, silent=False, templatedir=None): """Generate project based on values in *d*.""" template = QuickstartRenderer(templatedir=templatedir) - texescape.init() - if 'mastertoctree' not in d: d['mastertoctree'] = '' if 'mastertocmaxdepth' not in d: d['mastertocmaxdepth'] = 2 - d['PY3'] = True - d['project_fn'] = make_filename(d['project']) - d['project_url'] = quote(d['project'].encode('idna')) - d['project_manpage'] = d['project_fn'].lower() d['now'] = time.asctime() d['project_underline'] = column_width(d['project']) * '=' d.setdefault('extensions', []) d['copyright'] = time.strftime('%Y') + ', ' + d['author'] - d['author_texescaped'] = d['author'].translate(texescape.tex_escape_map) - d['project_doc'] = d['project'] + ' Documentation' - d['project_doc_texescaped'] = (d['project'] + ' Documentation').\ - translate(texescape.tex_escape_map) ensuredir(d['path']) |