#NEWLINE# def _build_contest_kwargs( self , row ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'office' : row [ 'OfficeDesc' ] . strip ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# if ( kwargs [ 'office' ] in kwargs . district_offices ) : #NEWLINE# #INDENT# kwargs [ 'district' ] = row [ 'Juris1num' ] . strip ( ) #NEWLINE# #UNINDENT# return kwargs