Skip to content

Commit

Permalink
testing cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bauman committed Jun 20, 2016
1 parent e7d0d1a commit 33bbff3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pasco/pascohelpermodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,23 +468,20 @@ PyObject* pasco_IterParse_iternext(PyObject *self)
if (p->type[0] == 'R' && p->type[1] == 'E' && p->type[2] == 'D' && p->type[3] == 'R' ) {
parse_redr( p->history_file, p->output_file, &tmp, p->currrecoff, p->delim, p->filesize, p->type );
} else if ( (p->type[0] == 'U' && p->type[1] == 'R' && p->type[2] == 'L') || (p->type[0] == 'L' && p->type[1] == 'E' && p->type[2] == 'A' && p->type[3] == 'K') ) {
//printf("goingtourl\n");
parse_url( p->history_file, p->output_file, &tmp, p->currrecoff, p->delim, p->filesize, p->type );
//printf("donewithurl\n");
} else {
parse_unknown( p->history_file, p->output_file, &tmp, p->currrecoff, p->delim, p->filesize, p->type );
}
p->currrecoff = p->currrecoff + BLOCK_SIZE;
return tmp;
} else {
close(p->history_file);
/* Raising of standard StopIteration exception with empty value. */
PyErr_SetNone(PyExc_StopIteration);
return NULL;
}
}
static PyTypeObject pasco_IterParseType = {
PyObject_HEAD_INIT(NULL) //REMOVE THIS COMMA./re
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"pascohelper._IterParse", /*tp_name*/
sizeof(pasco_IterParse), /*tp_basicsize*/
Expand Down Expand Up @@ -518,12 +515,10 @@ static PyTypeObject pasco_IterParseType = {
static PyObject *
pasco_iterparse(PyObject *self, PyObject *args)
{
long int m;
pasco_IterParse *p;
p = PyObject_New(pasco_IterParse, &pasco_IterParseType);
if (!p) return NULL;

/* I'm not sure if it's strictly necessary. */
if (!PyObject_Init((PyObject *)p, &pasco_IterParseType)) {
Py_DECREF(p);
return NULL;
Expand Down

0 comments on commit 33bbff3

Please sign in to comment.