#NEWLINE# def _get_swift_client( self , region_name ) : #NEWLINE# #INDENT# 'Get the swift client for a region.' #NEWLINE# token = self . _handler . tokens . get ( ) #NEWLINE# endpoint = token . get_endpoint ( 'object-store' , region_name ) #NEWLINE# client = swiftclient . client . Connection ( preauthurl = endpoint [ 'url' ] , preauthtoken = token . auth_token ) #NEWLINE# return { #NEWLINE# #INDENT# 'client' : client , #NEWLINE# 'endpoint' : endpoint [ 'url' ] , #NEWLINE# #UNINDENT# }