提交 2b69fb46 authored 作者: Frederic Bastien's avatar Frederic Bastien

Make PatternSub hangdling of allow_multiple_client with dictionnary that don't…

Make PatternSub hangdling of allow_multiple_client with dictionnary that don't define it to default to the value of the parent nod instead of False.
上级 1a305253
......@@ -645,7 +645,7 @@ class PatternSub(LocalOptimizer):
raise KeyError("Malformed pattern: %s (expected key 'pattern')" % pattern)
constraint = pattern.get('constraint', lambda expr: True)
if constraint(expr):
return match(real_pattern, expr, u, pattern.get('allow_multiple_clients', False))
return match(real_pattern, expr, u, pattern.get('allow_multiple_clients', allow_multiple_clients))
else:
return retry_with_equiv()
elif isinstance(pattern, str):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论