Commit 38b1a271 authored by Tim Peters's avatar Tim Peters

save_empty_tuple(): Comment on why we can't get rid of this.

parent a56f8cd5
...@@ -515,6 +515,9 @@ class Pickler: ...@@ -515,6 +515,9 @@ class Pickler:
dispatch[TupleType] = save_tuple 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): def save_empty_tuple(self, obj):
self.write(EMPTY_TUPLE) self.write(EMPTY_TUPLE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment