add upper case comment
This commit is contained in:
parent
f968667bc1
commit
cac7f93109
|
@ -16,7 +16,8 @@ def gen_file_hash(path: str, static_file: str) -> str:
|
||||||
|
|
||||||
def read_config_bool(var: str) -> bool:
|
def read_config_bool(var: str) -> bool:
|
||||||
val = os.getenv(var, '0')
|
val = os.getenv(var, '0')
|
||||||
# user can specify one of the following values as 'true' inputs:
|
# user can specify one of the following values as 'true' inputs (all
|
||||||
|
# variants with upper case letters will also work):
|
||||||
# ('true', 't', '1', 'yes', 'y')
|
# ('true', 't', '1', 'yes', 'y')
|
||||||
val = val.lower() in ('true', 't', '1', 'yes', 'y')
|
val = val.lower() in ('true', 't', '1', 'yes', 'y')
|
||||||
return val
|
return val
|
||||||
|
|
Loading…
Reference in New Issue
Block a user