mirror of
https://github.com/derrod/legendary.git
synced 2025-08-04 15:01:02 +00:00
Merge 73c9078a85
into 3963382b3f
This commit is contained in:
commit
89aa1af571
|
@ -84,7 +84,7 @@ def strtobool(val):
|
||||||
val = val.lower()
|
val = val.lower()
|
||||||
if val in ('y', 'yes', 't', 'true', 'on', '1'):
|
if val in ('y', 'yes', 't', 'true', 'on', '1'):
|
||||||
return 1
|
return 1
|
||||||
elif val in ('n', 'no', 'f', 'false', 'off', '0'):
|
elif val in ('n', 'no', 'f', 'false', 'off', '0', ''):
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
raise ValueError("invalid truth value %r" % (val,))
|
raise ValueError("invalid truth value %r" % (val,))
|
||||||
|
|
Loading…
Reference in a new issue