Skip to content

Commit

Permalink
Add protocol 3 opcodes to the C version of the 'noload()' dispatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jun 8, 2013
1 parent 8f5b4f1 commit 0d43d3f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
@@ -1,6 +1,11 @@
``zodbpickle`` Changelog
========================

Unreleased
----------

- Add protocol 3 opcodes to the C version of the ``noload()`` dispatcher.

0.4.3 (2013-06-07)
------------------

Expand Down
10 changes: 10 additions & 0 deletions src/zodbpickle/_pickle_27.c
Expand Up @@ -5393,6 +5393,16 @@ noload(Unpicklerobject *self)
break;
continue;

case BINBYTES:
if (load_binbytes(self) < 0)
break;
continue;

case SHORT_BINBYTES:
if (load_short_binbytes(self) < 0)
break;
continue;

case STRING:
if (load_string(self) < 0)
break;
Expand Down
11 changes: 11 additions & 0 deletions src/zodbpickle/_pickle_32.c
Expand Up @@ -5892,6 +5892,17 @@ noload(UnpicklerObject *self)
if (load_bool(self, Py_False) < 0)
break;
continue;

case BINBYTES:
if (load_binbytes(self) < 0)
break;
continue;

case SHORT_BINBYTES:
if (load_short_binbytes(self) < 0)
break;
continue;

default:
PyErr_Format(UnpicklingError,
"invalid load key, '%c'.", s[0]);
Expand Down
11 changes: 11 additions & 0 deletions src/zodbpickle/_pickle_33.c
Expand Up @@ -5948,6 +5948,17 @@ noload(UnpicklerObject *self)
if (load_bool(self, Py_False) < 0)
break;
continue;

case BINBYTES:
if (load_binbytes(self) < 0)
break;
continue;

case SHORT_BINBYTES:
if (load_short_binbytes(self) < 0)
break;
continue;

default:
PyErr_Format(UnpicklingError,
"invalid load key, '%c'.", s[0]);
Expand Down

0 comments on commit 0d43d3f

Please sign in to comment.