Commit 288ebda9 authored by Stefan Behnel's avatar Stefan Behnel

fix NormalizeTree transform

parent 2d422b51
...@@ -131,9 +131,9 @@ class NormalizeTree(CythonTransform): ...@@ -131,9 +131,9 @@ class NormalizeTree(CythonTransform):
def visit_ExprStatNode(self, node): def visit_ExprStatNode(self, node):
"""Eliminate useless string literals""" """Eliminate useless string literals"""
if node.expr.is_string_literal: if node.expr.is_string_literal:
return None return self.visit_PassStatNode(node)
self.visitchildren(node) else:
return node return self.visit_StatNode(node)
def visit_CDeclaratorNode(self, node): def visit_CDeclaratorNode(self, node):
return node return node
......
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