mirror of https://github.com/tqdm/tqdm.git
'Refactored by Sourcery'
This commit is contained in:
parent
ea8fec7e89
commit
d835a3cb5b
|
@ -25,7 +25,7 @@ def cast(val, typ):
|
||||||
|
|
||||||
# sys.stderr.write('\ndebug | `val:type`: `' + val + ':' + typ + '`.\n')
|
# sys.stderr.write('\ndebug | `val:type`: `' + val + ':' + typ + '`.\n')
|
||||||
if typ == 'bool':
|
if typ == 'bool':
|
||||||
if (val == 'True') or (val == ''):
|
if val in ['True', '']:
|
||||||
return True
|
return True
|
||||||
elif val == 'False':
|
elif val == 'False':
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue