def _dict_with_children_specs(specs):
 result = {}
 for spec in specs:
  if (not spec['deleted']):
   result.update({spec['key']: spec['value']})
 return result

def _dict_with_children_specs ( specs ) : result = { } for spec in specs : if ( not spec [ 'deleted' ] ) : result . update ( { spec [ 'key' ] : spec [ 'value' ] } ) return result
convert specs list to a dict .