Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix flake8 F632 warnings #418

Merged
merged 1 commit into from
Feb 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion breathe/parser/compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ class docListTypeSub(supermod.docListType):

def __init__(self, listitem=None, subtype=""):
self.node_subtype = "itemized"
if subtype is not "":
if subtype != "":
self.node_subtype = subtype
supermod.docListType.__init__(self, listitem)

Expand Down
4 changes: 2 additions & 2 deletions breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,10 +931,10 @@ def visit_doclist(self, node):
decorator around the generic render function.
Render all the children depth-first. """
""" Call the wrapped render function. Update the nesting level for the enumerated lists. """
if node.node_subtype is "itemized":
if node.node_subtype == "itemized":
val = self.render_iterable(node.listitem)
return self.render_unordered(children=val)
elif node.node_subtype is "ordered":
elif node.node_subtype == "ordered":
self.nesting_level += 1
val = self.render_iterable(node.listitem)
self.nesting_level -= 1
Expand Down