@@ -688,7 +688,7 @@ record_iter(PyObject *seq)
688
688
typedef struct {
689
689
PyObject_HEAD
690
690
Py_ssize_t it_index ;
691
- PyObject * it_map_iter ;
691
+ PyObject * it_key_iter ;
692
692
ApgRecordObject * it_seq ; /* Set to NULL when iterator is exhausted */
693
693
} ApgRecordItemsObject ;
694
694
@@ -697,7 +697,7 @@ static void
697
697
record_items_dealloc (ApgRecordItemsObject * it )
698
698
{
699
699
PyObject_GC_UnTrack (it );
700
- Py_CLEAR (it -> it_map_iter );
700
+ Py_CLEAR (it -> it_key_iter );
701
701
Py_CLEAR (it -> it_seq );
702
702
PyObject_GC_Del (it );
703
703
}
@@ -706,7 +706,7 @@ record_items_dealloc(ApgRecordItemsObject *it)
706
706
static int
707
707
record_items_traverse (ApgRecordItemsObject * it , visitproc visit , void * arg )
708
708
{
709
- Py_VISIT (it -> it_map_iter );
709
+ Py_VISIT (it -> it_key_iter );
710
710
Py_VISIT (it -> it_seq );
711
711
return 0 ;
712
712
}
@@ -726,11 +726,11 @@ record_items_next(ApgRecordItemsObject *it)
726
726
return NULL ;
727
727
}
728
728
assert (ApgRecord_CheckExact (seq ));
729
- assert (it -> it_map_iter != NULL );
729
+ assert (it -> it_key_iter != NULL );
730
730
731
- key = PyIter_Next (it -> it_map_iter );
731
+ key = PyIter_Next (it -> it_key_iter );
732
732
if (key == NULL ) {
733
- /* likely it_map_iter had less items than seq has values */
733
+ /* likely it_key_iter had less items than seq has values */
734
734
goto exhausted ;
735
735
}
736
736
@@ -740,7 +740,7 @@ record_items_next(ApgRecordItemsObject *it)
740
740
Py_INCREF (val );
741
741
}
742
742
else {
743
- /* it_map_iter had more items than seq has values */
743
+ /* it_key_iter had more items than seq has values */
744
744
Py_DECREF (key );
745
745
goto exhausted ;
746
746
}
@@ -757,7 +757,7 @@ record_items_next(ApgRecordItemsObject *it)
757
757
return tup ;
758
758
759
759
exhausted :
760
- Py_CLEAR (it -> it_map_iter );
760
+ Py_CLEAR (it -> it_key_iter );
761
761
Py_CLEAR (it -> it_seq );
762
762
return NULL ;
763
763
}
@@ -823,23 +823,23 @@ static PyObject *
823
823
record_new_items_iter (PyObject * seq )
824
824
{
825
825
ApgRecordItemsObject * it ;
826
- PyObject * map_iter ;
826
+ PyObject * key_iter ;
827
827
828
828
if (!ApgRecord_CheckExact (seq )) {
829
829
PyErr_BadInternalCall ();
830
830
return NULL ;
831
831
}
832
832
833
- map_iter = PyObject_GetIter (((ApgRecordObject * )seq )-> desc -> mapping );
834
- if (map_iter == NULL ) {
833
+ key_iter = PyObject_GetIter (((ApgRecordObject * )seq )-> desc -> keys );
834
+ if (key_iter == NULL ) {
835
835
return NULL ;
836
836
}
837
837
838
838
it = PyObject_GC_New (ApgRecordItemsObject , & ApgRecordItems_Type );
839
839
if (it == NULL )
840
840
return NULL ;
841
841
842
- it -> it_map_iter = map_iter ;
842
+ it -> it_key_iter = key_iter ;
843
843
it -> it_index = 0 ;
844
844
Py_INCREF (seq );
845
845
it -> it_seq = (ApgRecordObject * )seq ;
0 commit comments