diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-01 18:54:56 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-01 18:54:56 (GMT) |
commit | fce7fd6426519a2897330c03da7eb889232bf681 (patch) | |
tree | afe2ba5ce7020f102d7c5b5e568643b2e76199ad /Objects | |
parent | b0fa831d1e073624d28aa403496f122e2f35697a (diff) | |
download | cpython-fce7fd6426519a2897330c03da7eb889232bf681.zip cpython-fce7fd6426519a2897330c03da7eb889232bf681.tar.gz cpython-fce7fd6426519a2897330c03da7eb889232bf681.tar.bz2 |
Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 753b465..6012492 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1784,17 +1784,6 @@ const char *PyUnicode_GetDefaultEncoding(void) return unicode_default_encoding; } -int PyUnicode_SetDefaultEncoding(const char *encoding) -{ - if (strcmp(encoding, unicode_default_encoding) != 0) { - PyErr_Format(PyExc_ValueError, - "Can only set default encoding to %s", - unicode_default_encoding); - return -1; - } - return 0; -} - /* create or adjust a UnicodeDecodeError */ static void make_decode_exception(PyObject **exceptionObject, |