Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 40950:f3f0c697aa5b legacy-trunk
When printing an unraisable error, don't print exceptions. before the name.
This duplicates the behavior whening normally printing exceptions.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 26 Feb 2007 22:41:45 +0000 |
| parents | 45c73152b4ac |
| children | c83acfb1a632 |
comparison
equal
deleted
inserted
replaced
| 40939:c8c067302659 | 40950:f3f0c697aa5b |
|---|---|
| 601 moduleName = PyObject_GetAttrString(t, "__module__"); | 601 moduleName = PyObject_GetAttrString(t, "__module__"); |
| 602 if (moduleName == NULL) | 602 if (moduleName == NULL) |
| 603 PyFile_WriteString("<unknown>", f); | 603 PyFile_WriteString("<unknown>", f); |
| 604 else { | 604 else { |
| 605 char* modstr = PyString_AsString(moduleName); | 605 char* modstr = PyString_AsString(moduleName); |
| 606 if (modstr) | 606 if (modstr && |
| 607 strcmp(modstr, "exceptions") != 0) | |
| 607 { | 608 { |
| 608 PyFile_WriteString(modstr, f); | 609 PyFile_WriteString(modstr, f); |
| 609 PyFile_WriteString(".", f); | 610 PyFile_WriteString(".", f); |
| 610 } | 611 } |
| 611 } | 612 } |
