提交 40626f59 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Auto indentation

上级 8dc5e358
# For flag of bool type, we consider the string 'False','false' and '0' as False # For flag of bool type, we consider the string 'False','false' and '0' as False
# and the string 'True', 'true', '1' as true. # and the string 'True', 'true', '1' as true.
# We also accept the bool type as its corresponding value! # We also accept the bool type as its corresponding value!
...@@ -259,7 +259,7 @@ def BoolParam(default, is_valid=None, allow_override=True): ...@@ -259,7 +259,7 @@ def BoolParam(default, is_valid=None, allow_override=True):
def is_valid_bool(s): def is_valid_bool(s):
if s in ['False', 'false', '0', 'True', 'true', '1', False, True]: if s in ['False', 'false', '0', 'True', 'true', '1', False, True]:
return True return True
else: else:
return False return False
if is_valid is None: if is_valid is None:
is_valid = is_valid_bool is_valid = is_valid_bool
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论