#NEWLINE# def get_container( self , container_name ) : #NEWLINE# #INDENT# container_name_encoded = self . _encode_container_name ( container_name ) #NEWLINE# response = self . connection . request ( ( '/%s' % container_name ) , method = 'HEAD' ) #NEWLINE# if ( response . status == httplib . NO_CONTENT ) : #NEWLINE# #INDENT# container = self . _headers_to_container ( container_name , response . headers ) #NEWLINE# return container #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( response . status == httplib . NOT_FOUND ) : #NEWLINE# #INDENT# raise ContainerDoesNotExistError ( None , self , container_name ) #NEWLINE# #UNINDENT# #UNINDENT# raise LibcloudError ( ( 'Unexpected status code: %s' % response . status ) )