mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #6477: Merge with 3.3.
This commit is contained in:
commit
2ccf8e969c
3 changed files with 10 additions and 10 deletions
|
@ -3305,13 +3305,13 @@ save_singleton_type(PicklerObject *self, PyObject *obj, PyObject *singleton)
|
|||
static int
|
||||
save_type(PicklerObject *self, PyObject *obj)
|
||||
{
|
||||
if (obj == (PyObject *)&PyNone_Type) {
|
||||
if (obj == (PyObject *)&_PyNone_Type) {
|
||||
return save_singleton_type(self, obj, Py_None);
|
||||
}
|
||||
else if (obj == (PyObject *)&PyEllipsis_Type) {
|
||||
return save_singleton_type(self, obj, Py_Ellipsis);
|
||||
}
|
||||
else if (obj == (PyObject *)&PyNotImplemented_Type) {
|
||||
else if (obj == (PyObject *)&_PyNotImplemented_Type) {
|
||||
return save_singleton_type(self, obj, Py_NotImplemented);
|
||||
}
|
||||
return save_global(self, obj, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue