@staticmethod
    def prepare_properties(properties, name):
        props = dict((k, v) for k, v in properties.items()
                     if v is not None and k != 'value_specs')

        if 'name' in properties.keys():
            props.setdefault('name', name)

        if 'value_specs' in properties.keys():
            props.update(properties.get('value_specs'))

        return props
Return string representation of Cookie in an the LWP cookie file format.
dataset/ETHPy150Open openstack/group-based-policy-automation/gbpautomation/heat/engine/resources/gbpresource.py/GBPResource.prepare_properties--crossover with--dataset/ETHPy150Open Masood-M/yalih/mechanize/_lwpcookiejar.py/lwp_cookie_str