#NEWLINE# def _url_for( self , key ) : #NEWLINE# #INDENT# k = self . __new_key ( key ) #NEWLINE# try : #NEWLINE# #INDENT# return k . generate_url ( expires_in = key . url_valid_time , query_auth = False ) #NEWLINE# #UNINDENT# except ( BotoClientError , BotoServerError ) as e : #NEWLINE# #INDENT# raise IOError ( str ( e ) )