#NEWLINE# def fetch_keys( kind , client , fetch_max = FETCH_MAX , query = None , cursor = None ) : #NEWLINE# #INDENT# if ( query is None ) : #NEWLINE# #INDENT# query = client . query ( kind = kind ) #NEWLINE# query . keys_only ( ) #NEWLINE# #UNINDENT# iterator = query . fetch ( limit = fetch_max , start_cursor = cursor ) #NEWLINE# ( entities , _ , cursor ) = iterator . next_page ( ) #NEWLINE# return ( query , entities , cursor )