(e)
| 6356 | return |
| 6357 | |
| 6358 | def std_msg(e): |
| 6359 | # "Upcasts" a _KconfigIOError to an IOError, removing the custom |
| 6360 | # __str__() message. The standard message is better here. |
| 6361 | # |
| 6362 | # This might also convert an OSError to an IOError in obscure cases, |
| 6363 | # but it's probably not a big deal. The distinction is shaky (see |
| 6364 | # PEP-3151). |
| 6365 | return IOError(e.errno, e.strerror, e.filename) |
| 6366 | |
| 6367 | old_warn_assign_override = kconf.warn_assign_override |
| 6368 | old_warn_assign_redun = kconf.warn_assign_redun |