diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-10 22:30:19 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-10 22:30:19 +0000 |
commit | 6664426d7cdb63b88d973a731cc442ecba10047a (patch) | |
tree | 7c809077569e93086eb42e1e29eea8fb5c6eb582 /Python/import.c | |
parent | e9e07bf5c988bdfe4158d3ac14b25312430f1bd0 (diff) | |
download | cpython-git-6664426d7cdb63b88d973a731cc442ecba10047a.tar.gz |
Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt
(SIGINT). If an error occurs while importing the site module, the error is
printed and Python exits. Initialize the GIL before importing the site
module.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index eb50bc56f1..bcdd68e0ef 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2748,8 +2748,6 @@ PyImport_Import(PyObject *module_name) } else { /* No globals -- use standard builtins, and fake globals */ - PyErr_Clear(); - builtins = PyImport_ImportModuleLevel("__builtin__", NULL, NULL, NULL, 0); if (builtins == NULL) |