提交 533f97d2 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Use existing method with additional checks

上级 66d8b8c4
......@@ -898,9 +898,7 @@ class ShapeFeature(object):
r_shape = self.shape_of[r]
else:
# If no info is known on r's shape, use other_shape
self.shape_of[r] = other_shape
for sv in other_shape:
self.shape_of_reverse_index.setdefault(sv, set()).add(r)
self.set_shape(r, other_shape)
return
# Merge other_shape with r_shape, giving the priority to other_shape
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论