Commit 366f49a0 authored by Stefan Behnel's avatar Stefan Behnel

Avoid an unnecessary inefficiency in a regex, although it is not relevant in...

Avoid an unnecessary inefficiency in a regex, although it is not relevant in practice since the regex is only applied to Cython's only C code.
Found by GitHub CodeQL.
parent 3c19a9ca
...@@ -566,7 +566,7 @@ class UtilityCode(UtilityCodeBase): ...@@ -566,7 +566,7 @@ class UtilityCode(UtilityCodeBase):
r'([a-zA-Z_]+),' # type cname r'([a-zA-Z_]+),' # type cname
r'\s*"([^"]+)",' # method name r'\s*"([^"]+)",' # method name
r'\s*([^),]+)' # object cname r'\s*([^),]+)' # object cname
r'((?:,\s*[^),]+)*)' # args* r'((?:,[^),]+)*)' # args*
r'\)', externalise, impl) r'\)', externalise, impl)
assert 'CALL_UNBOUND_METHOD(' not in impl assert 'CALL_UNBOUND_METHOD(' not in impl
......
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