(e)
| 6285 | return |
| 6286 | |
| 6287 | def std_msg(e): |
| 6288 | # "Upcasts" a _KconfigIOError to an IOError, removing the custom |
| 6289 | # __str__() message. The standard message is better here. |
| 6290 | # |
| 6291 | # This might also convert an OSError to an IOError in obscure cases, |
| 6292 | # but it's probably not a big deal. The distinction is shaky (see |
| 6293 | # PEP-3151). |
| 6294 | return IOError(e.errno, e.strerror, e.filename) |
| 6295 | |
| 6296 | old_warn_assign_override = kconf.warn_assign_override |
| 6297 | old_warn_assign_redun = kconf.warn_assign_redun |