#NEWLINE# def handle_json_response( self , response , registration_ids ) : #NEWLINE# #INDENT# errors = group_response ( response , registration_ids , 'error' ) #NEWLINE# canonical = group_response ( response , registration_ids , 'registration_id' ) #NEWLINE# info = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if errors : #NEWLINE# #INDENT# info . update ( { #NEWLINE# #INDENT# 'errors' : errors , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if canonical : #NEWLINE# #INDENT# info . update ( { #NEWLINE# #INDENT# 'canonical' : canonical , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return info