提交 f70fde64 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Remove deprecated FunctionGraph properties.

上级 a022f5b0
...@@ -511,11 +511,6 @@ class FunctionGraph(utils.object2): ...@@ -511,11 +511,6 @@ class FunctionGraph(utils.object2):
for r, new_r in pairs: for r, new_r in pairs:
self.replace(r, new_r, reason=reason) self.replace(r, new_r, reason=reason)
def extend(self, feature):
warnings.warn("FunctionGraph.extend is deprecatd. It has been "
"renamed to FunctionGraph.attach_feature")
return self.attach_feature(feature)
def attach_feature(self, feature): def attach_feature(self, feature):
""" """
Adds a gof.toolbox.Feature to this function_graph Adds a gof.toolbox.Feature to this function_graph
...@@ -664,23 +659,6 @@ class FunctionGraph(utils.object2): ...@@ -664,23 +659,6 @@ class FunctionGraph(utils.object2):
"""WRITEME Same as len(self.clients(r)).""" """WRITEME Same as len(self.clients(r))."""
return len(self.clients(r)) return len(self.clients(r))
def nodes_getter(self):
warnings.warn("FunctionGraph.nodes is deprecated, it has been renamed 'apply_nodes'",
stacklevel=2)
return self.apply_nodes
def nodes_setter(self, value):
warnings.warn("FunctionGraph.nodes is deprecated, it has been renamed 'apply_nodes'",
stacklevel=2)
self.apply_nodes = value
def nodes_deleter(self):
warnings.warn("FunctionGraph.nodes is deprecated, it has been renamed 'apply_nodes'",
stacklevel=2)
del self.apply_nodes
nodes = property(nodes_getter, nodes_setter, nodes_deleter)
def check_integrity(self): def check_integrity(self):
"""WRITEME """WRITEME
Call this for a diagnosis if things go awry. Call this for a diagnosis if things go awry.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论