diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-02-23 10:54:28 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-02-23 10:54:28 -0500 |
commit | 3270c8c0426edf38d26b58305c352052665f5fc5 (patch) | |
tree | 1b16eb015283953f311a185f7afb0199356fe2df /Python/codecs.c | |
parent | 34c2894eaeac781adea1ab120a77ae18181b7b22 (diff) | |
parent | d47e31ab3d87cd91992dcaea3284cb7fa32f7721 (diff) | |
download | cpython-3270c8c0426edf38d26b58305c352052665f5fc5.tar.gz |
merge 3.1
Diffstat (limited to 'Python/codecs.c')
-rw-r--r-- | Python/codecs.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index 45d99291f1..c7f4a9cbc1 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -69,7 +69,7 @@ PyObject *normalizestring(const char *string) if (ch == ' ') ch = '-'; else - ch = tolower(Py_CHARMASK(ch)); + ch = Py_TOLOWER(Py_CHARMASK(ch)); p[i] = ch; } p[i] = '\0'; @@ -1067,15 +1067,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); |