From 302bf83969ee6a61ac6a000a096d064452fc7e0f Mon Sep 17 00:00:00 2001 From: Trevor Bekolay Date: Tue, 31 Jan 2017 13:06:16 -0500 Subject: [PATCH] Remove some unused imports And fixed some indentation to follow PEP8 style. --- guzzle_sphinx_theme/__init__.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/guzzle_sphinx_theme/__init__.py b/guzzle_sphinx_theme/__init__.py index 09a5df4..799550a 100644 --- a/guzzle_sphinx_theme/__init__.py +++ b/guzzle_sphinx_theme/__init__.py @@ -5,11 +5,6 @@ from docutils import nodes from sphinx import version_info as sphinx_version -from sphinx.locale import admonitionlabels - -from pygments.style import Style -from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic, Whitespace, Punctuation, Other, Literal def setup(app): @@ -43,8 +38,8 @@ def add_html_link(app, pagename, templatename, context, doctree): def create_sitemap(app, exception): """Generates the sitemap.xml from the collected HTML page links""" if (not app.config['html_theme_options'].get('base_url', '') or - exception is not None or - not app.sitemap_links): + exception is not None or + not app.sitemap_links): return filename = app.outdir + "/sitemap.xml" @@ -117,8 +112,8 @@ def visit_field_body(self, node): self.set_class_on_child(node, 'first', 0) field = node.parent if (self.compact_field_list or - isinstance(field.parent, nodes.docinfo) or - field.parent.index(field) == len(field.parent) - 1): + isinstance(field.parent, nodes.docinfo) or + field.parent.index(field) == len(field.parent) - 1): # If we are in a compact list, the docinfo, or if this is # the last field of the field list, do not add vertical # space after last element.