)]}'
{"networking_bagpipe/agent/bgpvpn/agent_extension.py":[{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"1a797afe26cf04f9e3e82e74e1862126b625d822","unresolved":false,"context_lines":[{"line_number":408,"context_line":"        service_infos \u003d [port_info.service_infos,"},{"line_number":409,"context_line":"                         port_info.network.service_infos]"},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"        for bgpvpn_type, rt_type, service_info in list("},{"line_number":412,"context_line":"                itertools.product(bgpvpn_const.BGPVPN_TYPES,"},{"line_number":413,"context_line":"                                  b_const.RT_TYPES,"},{"line_number":414,"context_line":"                                  service_infos)):"},{"line_number":415,"context_line":"            if bgpvpn_type in service_info:"},{"line_number":416,"context_line":"                bagpipe_vpn_type \u003d bgpvpn_const.BGPVPN_TYPES_MAP[bgpvpn_type]"},{"line_number":417,"context_line":"                if bagpipe_vpn_type not in attach_info:"},{"line_number":418,"context_line":"                    attach_info[bagpipe_vpn_type] \u003d dict()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_e8532716","line":415,"range":{"start_line":411,"start_character":0,"end_line":415,"end_character":43},"updated":"2017-11-15 16:34:15.000000000","message":"Can\u0027t this now be simplified: bgpvpn_type loops through all the values in bgpvpn_const.BGPVPN_TYPES, but the loop does something only when bgpvpn_type is also a key of service_infos, so why not simply have bgpvpn_type loop over the keys of service_infos ?","commit_id":"b6da6a074abaf09a539656e13b7cd0b1281a7a5b"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"6e57aedcaebfb46671153ab8e5d43b501586f8a2","unresolved":false,"context_lines":[{"line_number":380,"context_line":"                                set(orig_info[vpn_type][rt_type]) -"},{"line_number":381,"context_line":"                                set(service_info[vpn_type][rt_type]))"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"                    if not any(orig_info[vpn_type].get(rt_type)"},{"line_number":384,"context_line":"                               for rt_type in b_const.RT_TYPES):"},{"line_number":385,"context_line":"                        del(orig_info[vpn_type])"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"        return (not orig_info, orig_info)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f485f77_27d00dc9","line":384,"range":{"start_line":383,"start_character":20,"end_line":384,"end_character":63},"updated":"2017-11-17 15:25:59.000000000","message":"why not ?\n\n  if not (\u0027import_rt\u0027 in  orig_info[vpn_type] or \n          \u0027export_rt\u0027 in  orig_info[vpn_type]):","commit_id":"464ce8d2e720c7574c9fcbaec6a40e09fe6a0ff4"}]}
