#NEWLINE# def _translate_user_phids( conduit , results ) : #NEWLINE# #INDENT# user_phids = set ( ) #NEWLINE# for r in results : #NEWLINE# #INDENT# user_phids . add ( r [ 'authorPHID' ] ) #NEWLINE# for u in r [ 'ccs' ] : #NEWLINE# #INDENT# user_phids . add ( u ) #NEWLINE# #UNINDENT# for u in r [ 'reviewers' ] : #NEWLINE# #INDENT# user_phids . add ( u ) #NEWLINE# #UNINDENT# #UNINDENT# phidToUser = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# user_phids = list ( user_phids ) #NEWLINE# if user_phids : #NEWLINE# #INDENT# phidToUser = phlcon_user . make_phid_username_dict ( conduit , user_phids ) #NEWLINE# #UNINDENT# for r in results : #NEWLINE# #INDENT# r [ 'authorUsername' ] = phidToUser [ r [ 'authorPHID' ] ] #NEWLINE# r [ 'ccUsernames' ] = [ phidToUser [ u ] for u in r [ 'ccs' ] ] #NEWLINE# r [ 'reviewerUsernames' ] = [ phidToUser [ r ] for u in r [ 'reviewers' ] ]