#NEWLINE# def makeUserLookupDictByGithubId( userList ) : #NEWLINE# #INDENT# '\n    userList is a list of dictionaries with keys first,last,github,email,csil.\n    returned value is a dictionary where the keys are the github ids,\n      and the values are the original dictionaries with first,last,github,email,csil\n    ' #NEWLINE# newDict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for user in user : #NEWLINE# #INDENT# if ( user [ 'github' ] in newDict ) : #NEWLINE# #INDENT# raise Exception ( 'duplicate github user {0}' . format ( user [ 'github' ] ) ) #NEWLINE# #UNINDENT# newDict [ user [ 'github' ] ] = user #NEWLINE# #UNINDENT# return newDict