Switch to Little boxes, fixes #1 (#8)

This commit is contained in:
Thomas Sileo
2018-06-19 00:10:19 +02:00
committed by GitHub
parent 070e39bdfe
commit 8d5f4a8e98
20 changed files with 1529 additions and 2640 deletions

View File

@@ -4,9 +4,9 @@ logger = logging.getLogger(__name__)
def strtobool(s: str) -> bool:
if s in ['y', 'yes', 'true', 'on', '1']:
if s in ["y", "yes", "true", "on", "1"]:
return True
if s in ['n', 'no', 'false', 'off', '0']:
if s in ["n", "no", "false", "off", "0"]:
return False
raise ValueError(f'cannot convert {s} to bool')
raise ValueError(f"cannot convert {s} to bool")