Commit ecf6ccdb authored by Stefan Behnel's avatar Stefan Behnel

Tighten a condition to make passing None more explicit.

parent b1e7dd3b
...@@ -2357,7 +2357,7 @@ class CCodeWriter(object): ...@@ -2357,7 +2357,7 @@ class CCodeWriter(object):
def error_goto(self, pos): def error_goto(self, pos):
lbl = self.funcstate.error_label lbl = self.funcstate.error_label
self.funcstate.use_label(lbl) self.funcstate.use_label(lbl)
if not pos: if pos is None:
return 'goto %s;' % lbl return 'goto %s;' % lbl
return "__PYX_ERR(%s, %s, %s)" % ( return "__PYX_ERR(%s, %s, %s)" % (
self.lookup_filename(pos[0]), self.lookup_filename(pos[0]),
......
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