forked from GitHub/gf-core
fixed typos in the python binding: in a few places pgf_ExprType was used instead of pgf_ExprIterType
This commit is contained in:
@@ -317,7 +317,7 @@ Concr_parse(ConcrObject* self, PyObject *args, PyObject *keywds)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ExprIterObject* pyres = (ExprIterObject*)
|
ExprIterObject* pyres = (ExprIterObject*)
|
||||||
pgf_ExprType.tp_alloc(&pgf_ExprIterType, 0);
|
pgf_ExprIterType.tp_alloc(&pgf_ExprIterType, 0);
|
||||||
if (pyres == NULL) {
|
if (pyres == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -387,7 +387,7 @@ Concr_parse_tokens(ConcrObject* self, PyObject *args, PyObject *keywds)
|
|||||||
len = PySequence_Size(obj);
|
len = PySequence_Size(obj);
|
||||||
|
|
||||||
ExprIterObject* pyres = (ExprIterObject*)
|
ExprIterObject* pyres = (ExprIterObject*)
|
||||||
pgf_ExprType.tp_alloc(&pgf_ExprIterType, 0);
|
pgf_ExprIterType.tp_alloc(&pgf_ExprIterType, 0);
|
||||||
if (pyres == NULL) {
|
if (pyres == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -761,7 +761,7 @@ PGF_generate(PGFObject* self, PyObject *args, PyObject *keywds)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ExprIterObject* pyres = (ExprIterObject*)
|
ExprIterObject* pyres = (ExprIterObject*)
|
||||||
pgf_ExprType.tp_alloc(&pgf_ExprIterType, 0);
|
pgf_ExprIterType.tp_alloc(&pgf_ExprIterType, 0);
|
||||||
if (pyres == NULL) {
|
if (pyres == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user