#NEWLINE# def __iter__( self ) : #NEWLINE# #INDENT# query = self . _key_range . make_ascending_datastore_query ( self . _query_spec . entity_kind , filters = self . _query_spec . filters ) #NEWLINE# connection = datastore_rpc . Connection ( ) #NEWLINE# query_options = datastore_query . QueryOptions ( batch_size = self . _query_spec . batch_size , start_cursor = self . _cursor , produce_cursors = True ) #NEWLINE# self . _query = datastore_query . ResultsIterator ( query . GetQuery ( ) . run ( connection , self ) ) #NEWLINE# for entity_proto in self . _query : #NEWLINE# #INDENT# ( yield entity_proto )