diff options
author | Georg Brandl <georg@python.org> | 2015-03-08 16:59:27 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-03-08 16:59:27 +0100 |
commit | ba9dcaac5120f58c3cc0bc455b4beceab3a4abd9 (patch) | |
tree | 1f04a07d99ba7cf41d726a3d561eae90165553ce /sphinx/directives/other.py | |
parent | d0efb42a4179f331dd67d4d301c81b2c01d8e386 (diff) | |
download | sphinx-git-ba9dcaac5120f58c3cc0bc455b4beceab3a4abd9.tar.gz |
more pep8 fixes
Diffstat (limited to 'sphinx/directives/other.py')
-rw-r--r-- | sphinx/directives/other.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index d83c0ca90..2b941c31f 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -7,7 +7,6 @@ :license: BSD, see LICENSE for details. """ -from six import string_types from six.moves import range from docutils import nodes from docutils.parsers.rst import Directive, directives @@ -224,7 +223,8 @@ class VersionChange(Directive): classes=['versionmodified'])) else: para = nodes.paragraph('', '', - nodes.inline('', '%s.' % text, classes=['versionmodified'])) + nodes.inline('', '%s.' % text, + classes=['versionmodified'])) node.append(para) env = self.state.document.settings.env # XXX should record node.source as well @@ -359,10 +359,10 @@ class Only(Directive): self.state.nested_parse(self.content, self.content_offset, node, match_titles=1) title_styles = self.state.memo.title_styles - if (not surrounding_title_styles - or not title_styles - or title_styles[0] not in surrounding_title_styles - or not self.state.parent): + if (not surrounding_title_styles or + not title_styles or + title_styles[0] not in surrounding_title_styles or + not self.state.parent): # No nested sections so no special handling needed. return [node] # Calculate the depths of the current and nested sections. |