#NEWLINE# def _pick_pivot( self , pivot_ids ) : #NEWLINE# #INDENT# pivot = random . choice ( tuple ( pivot_ids ) ) #NEWLINE# if ( type ( self ) is types . TupleType ) : #NEWLINE# #INDENT# pivot = random . choice ( pivot ) #NEWLINE# #UNINDENT# return pivot