diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2013-11-24 02:53:45 -0800 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2013-11-24 02:53:45 -0800 |
commit | c49477b1848d5f7f1a98c6f19931d75c29019c7e (patch) | |
tree | 275eebd3cfdb4667b15880767536173b351bb3c6 /Lib/pickle.py | |
parent | 4c05d3bc561dcdd70dd0d268fa769197334349a8 (diff) | |
download | cpython-git-c49477b1848d5f7f1a98c6f19931d75c29019c7e.tar.gz |
Make Ellipsis and NotImplemented picklable through the reduce protocol.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 8 |
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) |