diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-15 12:04:23 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-15 12:04:23 +0000 |
commit | f3170ccef8809e4a3f82fe9f82dc7a4a486c28c1 (patch) | |
tree | b96ab0a2584f511758bad3e4ccac6c4e3ed43954 /Objects/object.c | |
parent | 6a4aff10f0f1c34f488d5d0f932eea1fb3483dbf (diff) | |
download | cpython-git-f3170ccef8809e4a3f82fe9f82dc7a4a486c28c1.tar.gz |
Use locale encoding if Py_FileSystemDefaultEncoding is not set
* PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and
PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if
Py_FileSystemDefaultEncoding is NULL
* redecode_filenames() functions and _Py_code_object_list (issue #9630)
are no more needed: remove them
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/object.c b/Objects/object.c index e322e53103..ff3363f432 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1604,10 +1604,6 @@ _Py_ReadyTypes(void) if (PyType_Ready(&PyCode_Type) < 0) Py_FatalError("Can't initialize code type"); - _Py_code_object_list = PyList_New(0); - if (_Py_code_object_list == NULL) - Py_FatalError("Can't initialize code type"); - if (PyType_Ready(&PyFrame_Type) < 0) Py_FatalError("Can't initialize frame type"); |