提交 418f4dc8 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix bug introduced in 5b61d59827406ccf5fcde9efb9b0e240823d6b40

上级 2efb1167
...@@ -1674,8 +1674,8 @@ class DebugMode(Mode): ...@@ -1674,8 +1674,8 @@ class DebugMode(Mode):
If any of these arguments (except optimizer) is not None, it overrides the class default. If any of these arguments (except optimizer) is not None, it overrides the class default.
The linker arguments is not used. It is set their to allow Mode.requiring() and some other fct to work with DebugMode too. The linker arguments is not used. It is set their to allow Mode.requiring() and some other fct to work with DebugMode too.
""" """
if linker is not None and not isinstance(linker,_Linker): if linker is not None and not issubclass(linker, _Linker):
raise Exception("DebugMode can use only its own linker! Don't give him one to use it.") raise Exception("DebugMode can use only its own linker! Don't give him one to use it.", linker)
super(DebugMode, self).__init__( super(DebugMode, self).__init__(
optimizer=optimizer, optimizer=optimizer,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论