提交 9cd0123c authored 作者: Mohammad Pezeshki's avatar Mohammad Pezeshki

'line break before binary operator' error resolved

上级 ad31bb30
......@@ -531,10 +531,10 @@ AddConfigVar(
AddConfigVar(
'exception_verbosity',
"If 'low', the text of exceptions will generally refer "
+ "to apply nodes with short names such as "
+ "Elemwise{add_no_inplace}. If 'high', some exceptions "
+ "will also refer to apply nodes with long descriptions "
+ """ like:
"to apply nodes with short names such as "
"Elemwise{add_no_inplace}. If 'high', some exceptions "
"will also refer to apply nodes with long descriptions "
""" like:
A. Elemwise{add_no_inplace}
B. log_likelihood_v_given_h
C. log_likelihood_h""",
......
......@@ -217,8 +217,8 @@ def AddConfigVar(name, doc, configparam, root=config, in_c_key=True):
_i_am_a_config_class = True
setattr(root.__class__, sections[0], SubObj())
newroot = getattr(root, sections[0])
if (not getattr(newroot, '_i_am_a_config_class', False)
or isinstance(newroot, type)):
if (not getattr(newroot, '_i_am_a_config_class', False) or
isinstance(newroot, type)):
raise TypeError(
'Internal config nodes must be config class instances',
newroot)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论