We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e97e4a commit a36383aCopy full SHA for a36383a
1 file changed
app/lib/util.py
@@ -6,8 +6,8 @@ def strtobool(val):
6
"""
7
val = val.lower()
8
if val in ("y", "yes", "t", "true", "on", "1"):
9
- return 1
+ return True
10
elif val in ("n", "no", "f", "false", "off", "0"):
11
- return 0
+ return False
12
else:
13
raise ValueError("invalid truth value %r" % (val,))
0 commit comments