#NEWLINE# def encode_kw11( p ) : #NEWLINE# #INDENT# if ( not ( type ( p ) is dict ) ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# ret = p . copy ( ) #NEWLINE# removes = [ ] #NEWLINE# for ( k , v ) in iteritems ( ret ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# int ( p ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# removes . append ( k ) #NEWLINE# #UNINDENT# #UNINDENT# for k in removes : #NEWLINE# #INDENT# ret . pop ( k ) #NEWLINE# #UNINDENT# return ret