doc strings in abstract exceptions

上级 34cb0b41
...@@ -217,6 +217,8 @@ class Op(object): ...@@ -217,6 +217,8 @@ class Op(object):
Clean up things allocated by L{c_validate}(). Clean up things allocated by L{c_validate}().
""" """
raise AbstractFunctionError() raise AbstractFunctionError()
raise AbstractFunctionError('%s.c_validate_update_cleanup ' \
% self.__class__.__name__)
def c_code(self, inputs, outputs, sub): def c_code(self, inputs, outputs, sub):
""" """
...@@ -227,7 +229,8 @@ class Op(object): ...@@ -227,7 +229,8 @@ class Op(object):
You may use the variable names defined by L{c_var_names}() in You may use the variable names defined by L{c_var_names}() in
the templates. the templates.
""" """
raise AbstractFunctionError() raise AbstractFunctionError('%s.c_code' \
% self.__class__.__name__)
def c_code_cleanup(self, inputs, outputs, sub): def c_code_cleanup(self, inputs, outputs, sub):
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论