提交 c0d97500 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo: deprication -> deprecation

上级 d9c41f58
...@@ -110,7 +110,7 @@ def get_updates_and_outputs(ls): ...@@ -110,7 +110,7 @@ def get_updates_and_outputs(ls):
raise ValueError(('Scan can not parse the return value' raise ValueError(('Scan can not parse the return value'
' of your constructive function given to scan')) ' of your constructive function given to scan'))
ls = list(ls) ls = list(ls)
deprication_msg = ('The return value of the lambda function' deprecation_msg = ('The return value of the lambda function'
' has been restricted. you have to always return first the' ' has been restricted. you have to always return first the'
' outputs (if any), afterwards the updates (if any) and' ' outputs (if any), afterwards the updates (if any) and'
' at the end the condition') ' at the end the condition')
...@@ -126,7 +126,7 @@ def get_updates_and_outputs(ls): ...@@ -126,7 +126,7 @@ def get_updates_and_outputs(ls):
raise ValueError(error_msg) raise ValueError(error_msg)
elif is_updates(ls[0]): elif is_updates(ls[0]):
if is_outputs(ls[1]): if is_outputs(ls[1]):
raise ValueError(deprication_msg) raise ValueError(deprecation_msg)
elif is_condition(ls[1]): elif is_condition(ls[1]):
return (ls[1].condition, [], dict(ls[0])) return (ls[1].condition, [], dict(ls[0]))
else: else:
......
...@@ -225,7 +225,7 @@ def get_updates_and_outputs(ls): ...@@ -225,7 +225,7 @@ def get_updates_and_outputs(ls):
if not isinstance(ls, (list, tuple)): if not isinstance(ls, (list, tuple)):
raise ValueError(error_msg) raise ValueError(error_msg)
ls = list(ls) ls = list(ls)
deprication_msg = ('The return value of the lambda function' deprecation_msg = ('The return value of the lambda function'
' has been restricted. you have to always return first the' ' has been restricted. you have to always return first the'
' outputs (if any), afterwards the updates (if any) and' ' outputs (if any), afterwards the updates (if any) and'
' at the end the conclusion') ' at the end the conclusion')
...@@ -239,7 +239,7 @@ def get_updates_and_outputs(ls): ...@@ -239,7 +239,7 @@ def get_updates_and_outputs(ls):
raise ValueError(error_msg) raise ValueError(error_msg)
elif is_updates(ls[0]): elif is_updates(ls[0]):
if is_outputs(ls[1]): if is_outputs(ls[1]):
raise ValueError(deprication_msg) raise ValueError(deprecation_msg)
elif is_condition(ls[1]): elif is_condition(ls[1]):
return (ls[1].condition, [], dict(ls[0])) return (ls[1].condition, [], dict(ls[0]))
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论