#NEWLINE# def encode_arg11( p ) : #NEWLINE# #INDENT# if ( type ( p ) is list ) : #NEWLINE# #INDENT# return p #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not ( type ( p ) is dict ) ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pos = [ ] #NEWLINE# d = encode_kw ( p ) #NEWLINE# for ( k , v ) in iteritems ( d ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# pos . append ( int ( k ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# pos = list ( set ( pos ) ) #NEWLINE# pos . sort ( ) #NEWLINE# return [ d [ text_type ( i ) ] for i in pos ]