summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 88f03a4..1b364c6 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -515,6 +515,9 @@ class Pickler:
dispatch[TupleType] = save_tuple
+ # save_empty_tuple() isn't used by anything in Python 2.3. However, I
+ # found a Pickler subclass in Zope3 that calls it, so it's not harmless
+ # to remove it.
def save_empty_tuple(self, obj):
self.write(EMPTY_TUPLE)