提交 dc846626 authored 作者: Frederic Bastien's avatar Frederic Bastien
...@@ -763,7 +763,7 @@ class ComponentDict(Composite): ...@@ -763,7 +763,7 @@ class ComponentDict(Composite):
return '\n'.join(strings) return '\n'.join(strings)
def __str__(self): def __str__(self):
return "ComponentDict(%s)" % ', '.join(x for x in sorted(map(str, self._components)) if x[0] != '_') return self.__class__.__name__+"(%s)" % ', '.join(x for x in sorted(map(str, self._components)) if x[0] != '_')
def __set_name__(self, name): def __set_name__(self, name):
super(ComponentDict, self).__set_name__(name) super(ComponentDict, self).__set_name__(name)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论