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

'line break before binary operator' error resolved

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