Fix a bug with adding __revision__ info to Exception

This commit is contained in:
James Vega 2004-09-06 00:51:53 +00:00
parent c4b2d53468
commit 48d312bab7

View File

@ -213,8 +213,11 @@ if not hasattr(Exception, '_original__init__'):
self._original__init__(*args, **kwargs)
Exception.__init__ = __init__
import atexit
def _replace_original__init__():
Exception.__init__ = Exception._original__init__
atexit.register(_replace_original__init__)g = globals()
g = globals()
for name in exported:
__builtins__[name] = g[name]