diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-15 12:04:23 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-15 12:04:23 (GMT) |
commit | f3170ccef8809e4a3f82fe9f82dc7a4a486c28c1 (patch) | |
tree | b96ab0a2584f511758bad3e4ccac6c4e3ed43954 /Objects/codeobject.c | |
parent | 6a4aff10f0f1c34f488d5d0f932eea1fb3483dbf (diff) | |
download | cpython-f3170ccef8809e4a3f82fe9f82dc7a4a486c28c1.zip cpython-f3170ccef8809e4a3f82fe9f82dc7a4a486c28c1.tar.gz cpython-f3170ccef8809e4a3f82fe9f82dc7a4a486c28c1.tar.bz2 |
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/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 470bf56..e24fc8d 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -5,8 +5,6 @@ #define NAME_CHARS \ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz" -PyObject *_Py_code_object_list = NULL; - /* all_name_chars(s): true iff all chars in s are valid NAME_CHARS */ static int @@ -111,17 +109,6 @@ PyCode_New(int argcount, int kwonlyargcount, co->co_lnotab = lnotab; co->co_zombieframe = NULL; co->co_weakreflist = NULL; - - if (_Py_code_object_list != NULL) { - int err; - PyObject *ref = PyWeakref_NewRef((PyObject*)co, NULL); - if (ref == NULL) - goto error; - err = PyList_Append(_Py_code_object_list, ref); - Py_DECREF(ref); - if (err) - goto error; - } } return co; |