Skip to content

Commit a02e90a

Browse files
Move clinic_state down to where it belongs; left-overs from first PR
1 parent 8baf0e1 commit a02e90a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/itertoolsmodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ find_state_by_type(PyTypeObject *tp)
5555
assert(mod != NULL);
5656
return get_module_state(mod);
5757
}
58-
#define clinic_state() (find_state_by_type(type))
5958

6059
/*[clinic input]
6160
module itertools
@@ -84,6 +83,7 @@ static PyTypeObject teedataobject_type;
8483
static PyTypeObject tee_type;
8584
static PyTypeObject batched_type;
8685

86+
#define clinic_state() (find_state_by_type(type))
8787
#define clinic_state_by_cls() (get_module_state_by_cls(base_tp))
8888
#include "clinic/itertoolsmodule.c.h"
8989
#undef clinic_state_by_cls

0 commit comments

Comments
 (0)