#NEWLINE# def get_bucket_props( self , bucket ) : #NEWLINE# #INDENT# '\n        Get properties for a bucket\n        ' #NEWLINE# bucket_type = self . _get_bucket_type ( bucket . bucket_type ) #NEWLINE# url = self . bucket_properties_path ( bucket . name , bucket_type = bucket_type ) #NEWLINE# ( status , headers , body ) = self . _request ( 'GET' , url ) #NEWLINE# if ( status == 200 ) : #NEWLINE# #INDENT# props = json . loads ( bytes_to_str ( body ) ) #NEWLINE# return headers [ 'props' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise RiakError ( 'Error getting bucket properties.' )