#NEWLINE# def _set_routing_key( self , key ) : #NEWLINE# #INDENT# if isinstance ( key , ( list , tuple ) ) : #NEWLINE# #INDENT# if ( len ( key ) == 1 ) : #NEWLINE# #INDENT# self . _routing_key = key [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _routing_key = b'' . join ( self . _key_parts_packed ( key ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . _routing_key = key