From 9b1e03ff4b6ffeeab04e8d2d59d17d12826a5dab Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 2 Feb 2003 16:14:23 +0000 Subject: dump(): Fixed a stupid bug in new code. It wasn't possible for the bug to have an effect before protocol 3 is invented, so no test can be written for this (yet). --- Modules/cPickle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 43a8d33..17ccb45 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -2217,7 +2217,7 @@ dump(Picklerobject *self, PyObject *args) char bytes[2]; bytes[0] = PROTO; - bytes[1] = CURRENT_PROTOCOL_NUMBER; + bytes[1] = self->proto; if (self->write_func(self, bytes, 2) < 0) return -1; } -- cgit v0.12