comparison Python/errors.c @ 40949:e759fd8d95ae

Remove the exceptions builtin module, all the exceptions are already builtin.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 26 Feb 2007 22:22:47 +0000
parents 67287ca4e1e8
children 06145fbc7ab9
comparison
equal deleted inserted replaced
40948:3093ea9b4024 40949:e759fd8d95ae
610 moduleName = PyObject_GetAttrString(t, "__module__"); 610 moduleName = PyObject_GetAttrString(t, "__module__");
611 if (moduleName == NULL) 611 if (moduleName == NULL)
612 PyFile_WriteString("<unknown>", f); 612 PyFile_WriteString("<unknown>", f);
613 else { 613 else {
614 char* modstr = PyString_AsString(moduleName); 614 char* modstr = PyString_AsString(moduleName);
615 if (modstr) 615 if (modstr &&
616 strcmp(modstr, "__builtin__") != 0)
616 { 617 {
617 PyFile_WriteString(modstr, f); 618 PyFile_WriteString(modstr, f);
618 PyFile_WriteString(".", f); 619 PyFile_WriteString(".", f);
619 } 620 }
620 } 621 }