summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2013-12-01 01:58:53 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2013-12-01 01:58:53 (GMT)
commit2ccf8e969c5e870a6c416ac7970c9f94c0da86fd (patch)
tree9a56def10252b7ab1e154db3f23c64a0aa5481f3 /Modules/_pickle.c
parent3c23e7a5dcbc1972bd9e26dc26e61d856abb51f1 (diff)
parent65846c6c5190a92446176f318fd837c6005cfa29 (diff)
downloadcpython-2ccf8e969c5e870a6c416ac7970c9f94c0da86fd.zip
cpython-2ccf8e969c5e870a6c416ac7970c9f94c0da86fd.tar.gz
cpython-2ccf8e969c5e870a6c416ac7970c9f94c0da86fd.tar.bz2
Issue #6477: Merge with 3.3.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 6445238..c8afa8e 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -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);