fixed typos in the python binding: in a few places pgf_ExprType was used instead of pgf_ExprIterType

This commit is contained in:
kr.angelov
2013-01-29 09:06:23 +00:00
parent 064fcf4345
commit 1723d8637c

View File

@@ -317,7 +317,7 @@ Concr_parse(ConcrObject* self, PyObject *args, PyObject *keywds)
return NULL;
ExprIterObject* pyres = (ExprIterObject*)
pgf_ExprType.tp_alloc(&pgf_ExprIterType, 0);
pgf_ExprIterType.tp_alloc(&pgf_ExprIterType, 0);
if (pyres == NULL) {
return NULL;
}
@@ -387,7 +387,7 @@ Concr_parse_tokens(ConcrObject* self, PyObject *args, PyObject *keywds)
len = PySequence_Size(obj);
ExprIterObject* pyres = (ExprIterObject*)
pgf_ExprType.tp_alloc(&pgf_ExprIterType, 0);
pgf_ExprIterType.tp_alloc(&pgf_ExprIterType, 0);
if (pyres == NULL) {
return NULL;
}
@@ -761,7 +761,7 @@ PGF_generate(PGFObject* self, PyObject *args, PyObject *keywds)
return NULL;
ExprIterObject* pyres = (ExprIterObject*)
pgf_ExprType.tp_alloc(&pgf_ExprIterType, 0);
pgf_ExprIterType.tp_alloc(&pgf_ExprIterType, 0);
if (pyres == NULL) {
return NULL;
}