dict_object.keys() is not required for *in* operator

cleanup of .keys() from dict_object.keys() *in* operator

Change-Id: I38c2a0086f55661d2426b42721c406ad58ea9c58
This commit is contained in:
confi-surya 2018-12-19 17:18:11 +05:30
parent 828fd1e063
commit baf746afb8
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ def main(argv=sys.argv):
for i in ast.literal_eval(input_values.get('env_files')))
for file in compose_env_files:
if file in input_env_files.keys():
if file in input_env_files:
write_input_file(file, input_env_files.get(file))
cmd = [

View File

@ -34,7 +34,7 @@ def main(argv=sys.argv):
c = json.load(sys.stdin)['config']
for fname in c.keys():
for fname in c:
prepare_dir(os.path.dirname(fname))
data = c.get(fname)
with open(fname, 'w') as json_data_file: