Commit ca6cda62 authored by da-woods's avatar da-woods Committed by Stefan Behnel

Small changes to get `--cython-compile-all` working again (GH-3650)

Fixes https://github.com/cython/cython/issues/3647
parent 26d40043
...@@ -322,7 +322,8 @@ def strip_string_literals(code, prefix='__Pyx_L'): ...@@ -322,7 +322,8 @@ def strip_string_literals(code, prefix='__Pyx_L'):
in_quote = False in_quote = False
hash_mark = single_q = double_q = -1 hash_mark = single_q = double_q = -1
code_len = len(code) code_len = len(code)
quote_type = quote_len = None quote_type = None
quote_len = -1
while True: while True:
if hash_mark < q: if hash_mark < q:
......
...@@ -2877,7 +2877,7 @@ class GilCheck(VisitorTransform): ...@@ -2877,7 +2877,7 @@ class GilCheck(VisitorTransform):
self.visitchildren(node, outer_attrs) self.visitchildren(node, outer_attrs)
self.nogil = gil_state self.nogil = gil_state
self.visitchildren(node, exclude=outer_attrs) self.visitchildren(node, attrs=None, exclude=outer_attrs)
self.nogil = was_nogil self.nogil = was_nogil
def visit_FuncDefNode(self, node): def visit_FuncDefNode(self, 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