#NEWLINE# def get_keys( self , bucket , timeout = None ) : #NEWLINE# #INDENT# '\n        Fetch a list of keys for the bucket\n        ' #NEWLINE# bucket_type = self . _get_bucket_type ( bucket . bucket_type ) #NEWLINE# url = self . key_list_path ( bucket . name , bucket_type = bucket_type , timeout = timeout ) #NEWLINE# ( status , _ , body ) = self . _request ( 'GET' , url ) #NEWLINE# if ( status == 200 ) : #NEWLINE# #INDENT# props = json . loads ( bytes_to_str ( body ) ) #NEWLINE# return props [ 'keys' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise RiakError ( 'Error listing keys.' )