def update_provider_location(provider_location, items):
 location_dict = {tp.split('^')[0]: tp.split('^')[1] for tp in provider_location.split('|')}
 for (key, value) in items.items():
  location_dict[key] = value
 return dump_provider_location(location_dict)

def update_provider_location ( provider_location , items ) : location_dict = { tp . split ( '^' ) [ 0 ] : tp . split ( '^' ) [ 1 ] for tp in provider_location . split ( '|' ) } for ( key , value ) in items . items ( ) : location_dict [ key ] = value return dump_provider_location ( location_dict )
updates provider_location with new dict items .