提交 7a24a169 authored 作者: Valentin Bisson's avatar Valentin Bisson

Minor. Fixed strange string formatting.

上级 74e88eb9
...@@ -464,8 +464,8 @@ class Function(object): ...@@ -464,8 +464,8 @@ class Function(object):
except KeyError: except KeyError:
raise TypeError("Unknown input or state: %s" % str(item)) raise TypeError("Unknown input or state: %s" % str(item))
if s is DUPLICATE: if s is DUPLICATE:
raise TypeError("Ambiguous name: %s - please check the names '\ raise TypeError("Ambiguous name: %s - please check the names "\
'of the inputs of your function for duplicates." % str(item)) "of the inputs of your function for duplicates." % str(item))
if isinstance(s, gof.Container): if isinstance(s, gof.Container):
return s.value return s.value
else: else:
...@@ -478,8 +478,8 @@ class Function(object): ...@@ -478,8 +478,8 @@ class Function(object):
msg = get_info_on_inputs(named_inputs, n_unnamed_inputs) msg = get_info_on_inputs(named_inputs, n_unnamed_inputs)
raise TypeError("Unknown input or state: %s. %s" % (str(item), msg)) raise TypeError("Unknown input or state: %s. %s" % (str(item), msg))
if s is DUPLICATE: if s is DUPLICATE:
raise TypeError("Ambiguous name: %s - please check the names '\ raise TypeError("Ambiguous name: %s - please check the names "\
'of the inputs of your function for duplicates." % str(item)) "of the inputs of your function for duplicates." % str(item))
if isinstance(s, gof.Container): if isinstance(s, gof.Container):
s.value = value s.value = value
s.provided += 1 s.provided += 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论