diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-18 21:31:12 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-18 21:31:12 (GMT) |
commit | f0ecdd2ab9dabd61540d65bd638d201f45c2b558 (patch) | |
tree | 476d6c662f87e834b74f055dd560112fe25ffef9 /Python | |
parent | aa5c5c60f1e077b6d68804adeb8b05638abb3dd7 (diff) | |
parent | 1b468af7be7a2f0af7730c64402a38cc11413f51 (diff) | |
download | cpython-f0ecdd2ab9dabd61540d65bd638d201f45c2b558.zip cpython-f0ecdd2ab9dabd61540d65bd638d201f45c2b558.tar.gz cpython-f0ecdd2ab9dabd61540d65bd638d201f45c2b558.tar.bz2 |
Issue #13722: Avoid silencing ImportErrors when initializing the codecs registry.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/codecs.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index 9b0c4b2..607feea 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -1041,15 +1041,6 @@ static int _PyCodecRegistry_Init(void) mod = PyImport_ImportModuleNoBlock("encodings"); if (mod == NULL) { - if (PyErr_ExceptionMatches(PyExc_ImportError)) { - /* Ignore ImportErrors... this is done so that - distributions can disable the encodings package. Note - that other errors are not masked, e.g. SystemErrors - raised to inform the user of an error in the Python - configuration are still reported back to the user. */ - PyErr_Clear(); - return 0; - } return -1; } Py_DECREF(mod); |