#include <assert.h>
-#if 0
-#define fprintf if (0) fprintf
-#endif
-
/* XXX TO DO
- re-indent this file (should be done)
- internal error checking (freeing memory, etc.)
}
else {
/* Should never be reached */
- PyErr_SetString(PyExc_Exception, "logic error in count_list_fors");
+ PyErr_SetString(PyExc_SystemError, "logic error in count_list_fors");
return -1;
}
}
}
else {
/* Should never be reached */
- PyErr_SetString(PyExc_Exception, "logic error in count_gen_fors");
+ PyErr_SetString(PyExc_SystemError,
+ "logic error in count_gen_fors");
return -1;
}
}
return TryExcept(suite_seq1, handlers, suite_seq2, LINENO(n));
}
else {
- PyErr_SetString(PyExc_Exception, "malformed 'try' statement");
+ ast_error(n, "malformed 'try' statement");
return NULL;
}
}