diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-02-02 16:14:23 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-02-02 16:14:23 (GMT) |
commit | 9b1e03ff4b6ffeeab04e8d2d59d17d12826a5dab (patch) | |
tree | 5abc015de16a83549e98638d5cc30952d95e1f1c /Modules | |
parent | 4190fb84293b4c54127e1b7be2d9bdf06edf2910 (diff) | |
download | cpython-9b1e03ff4b6ffeeab04e8d2d59d17d12826a5dab.zip cpython-9b1e03ff4b6ffeeab04e8d2d59d17d12826a5dab.tar.gz cpython-9b1e03ff4b6ffeeab04e8d2d59d17d12826a5dab.tar.bz2 |
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).
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cPickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |