提交 ce476c7a authored 作者: Frederic Bastien's avatar Frederic Bastien

Don't add empty string to a code section

上级 42750428
...@@ -189,7 +189,7 @@ static struct PyModuleDef moduledef = {{ ...@@ -189,7 +189,7 @@ static struct PyModuleDef moduledef = {{
def add_support_code(self, code): def add_support_code(self, code):
assert not self.finalized assert not self.finalized
if code not in self.support_code: # TODO: KLUDGE if code and code not in self.support_code: # TODO: KLUDGE
self.support_code.append(code) self.support_code.append(code)
def add_function(self, fn): def add_function(self, fn):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论