]> granicus.if.org Git - python/commit
Fix [ 771097 ] frozen programs fail due to implicit import of "warnings".
authorMark Hammond <mhammond@skippinet.com.au>
Tue, 15 Jul 2003 23:03:55 +0000 (23:03 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Tue, 15 Jul 2003 23:03:55 +0000 (23:03 +0000)
commitedd07737d70f9021d90f3990fd7f527aa9a54e48
tree3f1d62b0f65c38d5c14d81ad399918270c1037ca
parentd51ce7de97f3aa1cf6ee65975475dce371cd3aea
Fix [ 771097 ] frozen programs fail due to implicit import of "warnings".

If the initial import of warnings fails, clear the error.  When the module
is actually needed, if the original import failed, see if it has managed
to find its way to sys.modules yet and if so, remember it.
Python/errors.c
Python/pythonrun.c