commit | 9b1e03ff4b6ffeeab04e8d2d59d17d12826a5dab | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sun Feb 02 16:14:23 2003 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sun Feb 02 16:14:23 2003 +0000 |
tree | 5abc015de16a83549e98638d5cc30952d95e1f1c | |
parent | 4190fb84293b4c54127e1b7be2d9bdf06edf2910 [diff] |
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).
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 @@ 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; }