提交 9f361a06 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Use the config flag instead of always True

上级 0d0b7e72
...@@ -285,8 +285,8 @@ def get_c_declare(r, name, sub): ...@@ -285,8 +285,8 @@ def get_c_declare(r, name, sub):
if ((any([getattr(c.op, 'check_input', config.check_input) if ((any([getattr(c.op, 'check_input', config.check_input)
for (c, _) in r.clients for (c, _) in r.clients
if not isinstance(c, string_types)]) or if not isinstance(c, string_types)]) or
(r.owner and getattr(r.owner.op, 'check_input', True)))): (r.owner and
getattr(r.owner.op, 'check_input', config.check_input)))):
c_declare = r.type.c_declare(name, sub, True) c_declare = r.type.c_declare(name, sub, True)
else: else:
c_declare = r.type.c_declare(name, sub, False) c_declare = r.type.c_declare(name, sub, False)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论