summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2013-12-01 01:55:48 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2013-12-01 01:55:48 (GMT)
commit65846c6c5190a92446176f318fd837c6005cfa29 (patch)
treea1b01b9f99a3705ae3d949fb683c234c62f317cc /Modules
parent19b6fa6ebb887e498437b4ae87d6e70b92b4742b (diff)
downloadcpython-65846c6c5190a92446176f318fd837c6005cfa29.zip
cpython-65846c6c5190a92446176f318fd837c6005cfa29.tar.gz
cpython-65846c6c5190a92446176f318fd837c6005cfa29.tar.bz2
Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_pickle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index ba192fb..ae801f7 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -2853,13 +2853,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);