Skip to content
Permalink
Browse files

pep8

  • Loading branch information...
sdpython committed Jul 5, 2017
1 parent 73476c5 commit b0418c046ee0fc26f375fbc50615a5815e439f04
@@ -10,7 +10,6 @@
import datetime
import re
import warnings
from sphinx import __display_version__ as sphinx__display_version
from .style_css_template import style_figure_notebook
from sphinx.builders.html import Stylesheet

@@ -23,10 +23,8 @@
import os
from docutils import core, languages
from docutils.io import StringInput, StringOutput
from sphinx.environment import BuildEnvironment, default_settings
from sphinx import __display_version__ as sphinx__display_version__
from sphinx.environment import default_settings
from sphinx.util.logging import getLogger
from sphinx.util.docutils import is_html5_writer_available


if sys.version_info[0] == 2:
@@ -6,7 +6,6 @@
"""
import sys
from collections import deque
import types
import warnings
from sphinx.locale import _
from docutils.parsers.rst import directives, roles
@@ -24,6 +23,14 @@
from sphinx.transforms import SphinxTransformer
from sphinx.util.osutil import relative_uri
from sphinx.util.logging import getLogger
from sphinx.util.docutils import is_html5_writer_available
from sphinx.util.docutils import directive_helper
from sphinx import __display_version__
from sphinx.application import Tags, builtin_extensions
from sphinx.application import Config, CONFIG_FILENAME, ConfigError, VersionRequirementError
from sphinx.registry import SphinxComponentRegistry
from sphinx.events import EventManager
from sphinx.extension import verify_required_extensions
from ..sphinxext.sphinx_bigger_extension import visit_bigger_node as ext_visit_bigger_node, depart_bigger_node as ext_depart_bigger_node
from ..sphinxext.sphinx_blocref_extension import visit_blocref_node as ext_visit_blocref_node, depart_blocref_node as ext_depart_blocref_node
from ..sphinxext.sphinx_blog_extension import visit_blogpost_node as ext_visit_blogpost_node, depart_blogpost_node as ext_depart_blogpost_node
@@ -40,15 +47,6 @@
warnings.simplefilter("ignore")
from sphinx.builders.html import SingleFileHTMLBuilder

from sphinx.util.docutils import is_html5_writer_available
from sphinx.util.docutils import directive_helper
from sphinx import __display_version__
from sphinx.application import Tags, builtin_extensions
from sphinx.application import Config, CONFIG_FILENAME, ConfigError, VersionRequirementError
from sphinx.registry import SphinxComponentRegistry
from sphinx.events import EventManager
from sphinx.extension import verify_required_extensions


if sys.version_info[0] == 2:
from StringIO import StringIO
@@ -939,9 +937,9 @@ def add_event(self, name):
self._added_objects.append(('event', name))
Sphinx.add_event(self, name)

def add_config_value(self, name, default, rebuild, types=()):
def add_config_value(self, name, default, rebuild, types_=()):
self._added_objects.append(('config_value', name))
Sphinx.add_config_value(self, name, default, rebuild, types)
Sphinx.add_config_value(self, name, default, rebuild, types_)

def add_directive_to_domain(self, domain, name, obj,
has_content=None, argument_spec=None, **option_spec):
@@ -8,9 +8,6 @@
import sys
from docutils import io as docio
from docutils.core import publish_programmatically
from sphinx.config import Config
from sphinx import __display_version__ as sphinx__display_version__
from sphinx.environment import BuildEnvironment


if sys.version_info[0] == 2:

0 comments on commit b0418c0

Please sign in to comment.
You can’t perform that action at this time.