summaryrefslogtreecommitdiff
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2013-11-24 02:53:45 -0800
committerAlexandre Vassalotti <alexandre@peadrop.com>2013-11-24 02:53:45 -0800
commitc49477b1848d5f7f1a98c6f19931d75c29019c7e (patch)
tree275eebd3cfdb4667b15880767536173b351bb3c6 /Lib/pickle.py
parent4c05d3bc561dcdd70dd0d268fa769197334349a8 (diff)
downloadcpython-git-c49477b1848d5f7f1a98c6f19931d75c29019c7e.tar.gz
Make Ellipsis and NotImplemented picklable through the reduce protocol.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index d4aa13bd0c..cf8e2c5964 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -633,14 +633,6 @@ class _Pickler:
self.write(NONE)
dispatch[type(None)] = save_none
- def save_ellipsis(self, obj):
- self.save_global(Ellipsis, 'Ellipsis')
- dispatch[type(Ellipsis)] = save_ellipsis
-
- def save_notimplemented(self, obj):
- self.save_global(NotImplemented, 'NotImplemented')
- dispatch[type(NotImplemented)] = save_notimplemented
-
def save_bool(self, obj):
if self.proto >= 2:
self.write(NEWTRUE if obj else NEWFALSE)