*** cimport.c 2005-03-16 06:12:28.000000000 -0800 --- cimport.c.new 2005-10-24 09:50:34.000000000 -0700 *************** *** 321,327 **** m = call_find_load(fullname, subname, path); ! if (m != NULL && mod != Py_None) { if (PyObject_SetAttrString(mod, subname, m) < 0) { Py_DECREF(m); m = NULL; --- 321,327 ---- m = call_find_load(fullname, subname, path); ! if (m != NULL && m != Py_None && mod != Py_None) { if (PyObject_SetAttrString(mod, subname, m) < 0) { Py_DECREF(m); m = NULL;