diff options
author | Georg Brandl <georg@python.org> | 2010-11-20 11:25:37 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-20 11:25:37 +0100 |
commit | 47bc250f19e80ce705a6435184c22d40e4a3b8c7 (patch) | |
tree | 69ff50737ad53ccf682c96f53a171b5544334e61 /sphinx/builders/websupport.py | |
parent | de0cf8f665c6e12704a58c4856e0da191aa3bc34 (diff) | |
download | sphinx-git-47bc250f19e80ce705a6435184c22d40e4a3b8c7.tar.gz |
Avoid "import *" and remove unused import/variable.
Diffstat (limited to 'sphinx/builders/websupport.py')
-rw-r--r-- | sphinx/builders/websupport.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/builders/websupport.py b/sphinx/builders/websupport.py index 303adfe64..7970f8bd7 100644 --- a/sphinx/builders/websupport.py +++ b/sphinx/builders/websupport.py @@ -11,7 +11,6 @@ import cPickle as pickle from os import path -from cgi import escape import posixpath import shutil @@ -83,7 +82,7 @@ class WebSupportBuilder(StandaloneHTMLBuilder, VersioningBuilderMixin): return '/' + posixpath.join(self.app.staticdir, otheruri) ctx['pathto'] = pathto ctx['hasdoc'] = lambda name: name in self.env.all_docs - ctx['encoding'] = encoding = self.config.html_output_encoding + ctx['encoding'] = self.config.html_output_encoding ctx['toctree'] = lambda **kw: self._get_local_toctree(pagename, **kw) self.add_sidebars(pagename, ctx) ctx.update(addctx) |