Skip to content

Commit

Permalink
Remove some unused imports
Browse files Browse the repository at this point in the history
And fixed some indentation to follow PEP8 style.
  • Loading branch information
tbekolay committed Jan 31, 2017
1 parent 2806c95 commit 302bf83
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions guzzle_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 302bf83

Please sign in to comment.