#NEWLINE# def _prepare_params( self , params ) : #NEWLINE# #INDENT# 'Prepare parameters to be passed in query strings to the Xively API.' #NEWLINE# params = dict ( value ) #NEWLINE# for ( name , value ) in params . items ( ) : #NEWLINE# #INDENT# if isinstance ( value , datetime ) : #NEWLINE# #INDENT# params [ name ] = ( value . isoformat ( ) + 'Z' ) #NEWLINE# #UNINDENT# #UNINDENT# return params