diff options
author | Georg Brandl <georg@python.org> | 2008-05-20 07:49:57 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-20 07:49:57 (GMT) |
commit | dffbf5f5421cbeb20237280c0bd70f989269f844 (patch) | |
tree | 51a520dcf10d589bd145d9117b010dab6bc28e3b /Modules/cPickle.c | |
parent | 06d2a2cb0e105019e8bd5e29a3c81c6874e6396a (diff) | |
download | cpython-dffbf5f5421cbeb20237280c0bd70f989269f844.zip cpython-dffbf5f5421cbeb20237280c0bd70f989269f844.tar.gz cpython-dffbf5f5421cbeb20237280c0bd70f989269f844.tar.bz2 |
Revert copy_reg -> copyreg rename.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r-- | Modules/cPickle.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 06726ee..f130087 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -105,18 +105,18 @@ static PyObject *BadPickleGet; /* As the name says, an empty tuple. */ static PyObject *empty_tuple; -/* copyreg.dispatch_table, {type_object: pickling_function} */ +/* copy_reg.dispatch_table, {type_object: pickling_function} */ static PyObject *dispatch_table; /* For EXT[124] opcodes. */ -/* copyreg._extension_registry, {(module_name, function_name): code} */ +/* copy_reg._extension_registry, {(module_name, function_name): code} */ static PyObject *extension_registry; -/* copyreg._inverted_registry, {code: (module_name, function_name)} */ +/* copy_reg._inverted_registry, {code: (module_name, function_name)} */ static PyObject *inverted_registry; -/* copyreg._extension_cache, {code: object} */ +/* copy_reg._extension_cache, {code: object} */ static PyObject *extension_cache; -/* For looking up name pairs in copyreg._extension_registry. */ +/* For looking up name pairs in copy_reg._extension_registry. */ static PyObject *two_tuple; static PyObject *__class___str, *__getinitargs___str, *__dict___str, @@ -2477,7 +2477,7 @@ save(Picklerobject *self, PyObject *args, int pers_save) } /* Get a reduction callable, and call it. This may come from - * copyreg.dispatch_table, the object's __reduce_ex__ method, + * copy_reg.dispatch_table, the object's __reduce_ex__ method, * or the object's __reduce__ method. */ __reduce__ = PyDict_GetItem(dispatch_table, (PyObject *)type); @@ -5591,7 +5591,7 @@ init_stuff(PyObject *module_dict) INIT_STR(copyreg); INIT_STR(dispatch_table); - if (!( copyreg = PyImport_ImportModule("copyreg"))) + if (!( copyreg = PyImport_ImportModule("copy_reg"))) return -1; /* This is special because we want to use a different |