Commit 2d8145b1 authored by Stefan Behnel's avatar Stefan Behnel

Simplify code and add a comment.

parent 7b018126
...@@ -53,11 +53,10 @@ class SkipDeclarations(object): ...@@ -53,11 +53,10 @@ class SkipDeclarations(object):
return node return node
def visit_CppClassNode(self, node): def visit_CppClassNode(self, node):
if node.visibility == "extern": if node.visibility != "extern":
return node # Need to traverse methods.
else:
self.visitchildren(node) self.visitchildren(node)
return node return node
class NormalizeTree(CythonTransform): class NormalizeTree(CythonTransform):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment