未验证 提交 cdb98e2d 编写于 作者: W whs 提交者: GitHub

Fix equal function in VarWrapper. (#227)

上级 df0dff84
......@@ -46,7 +46,7 @@ class VarWrapper(object):
"""
Overwrite this function for ...in... syntax in python.
"""
return self._var.name == v._var.name
return (v is not None) and self._var.name == v._var.name
def name(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册