Run futurize --stage2

This commit is contained in:
JonnyWong16 2019-11-23 19:16:51 -08:00
parent ab6196589b
commit 597cc9fe29
12 changed files with 30 additions and 30 deletions

View file

@ -274,10 +274,10 @@ class API2(object):
config = {}
# Truthify the dict
for k, v in conf.items():
for k, v in list(conf.items()):
if isinstance(v, dict):
d = {}
for kk, vv in v.items():
for kk, vv in list(v.items()):
if vv == '0' or vv == '1':
d[kk] = bool(vv)
else: