1 diff -ur bubbros-1.5.orig/bubbob/statesaver.c bubbros-1.5/bubbob/statesaver.c
2 --- bubbros-1.5.orig/bubbob/statesaver.c 2007-09-08 17:43:14.000000000 +0200
3 +++ bubbros-1.5/bubbob/statesaver.c 2007-09-08 17:43:14.000000000 +0200
5 Py_INCREF(g); /* exhausted -- can return 'g' itself */
8 - if (f->f_nfreevars || f->f_ncells) {
9 + if (PySequence_Length(co->co_freevars) || PySequence_Length(co->co_cellvars)) {
10 PyErr_SetString(PyExc_ValueError, "generator has cell or free vars");
14 PyFrameObject* f = NULL;
15 PyFrameObject* f2 = NULL;
18 + PyCodeObject* code2;
26 - f2 = (PyFrameObject*) x;
28 - if (f2->f_stacksize != f->f_stacksize) {
29 + code2 = (PyFrameObject*) x;
30 + if (code2->co_stacksize != code->co_stacksize) {
31 PyErr_SetString(PyExc_TypeError, "stack size mismatch");