From 76a354f64799880189bcadee1f792ba12ec16a90 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Tue, 3 Sep 2013 14:35:34 -0700 Subject: [PATCH] Fix problems from merge --- capnp/capnp.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/capnp/capnp.pyx b/capnp/capnp.pyx index 32b4e41..321455e 100644 --- a/capnp/capnp.pyx +++ b/capnp/capnp.pyx @@ -946,16 +946,16 @@ cdef class SchemaParser: reader = _PackedFdMessageReader(file.fileno()) return reader.get_root(bound_local_module) return helper - def make_from_bytes(local_module): + def make_from_bytes(bound_local_module): def from_bytes(buf): """Returns a Reader for the unpacked object in buf. :type buf: buffer :param buf: Any Python object that supports the readable buffer interface. If buf is mutable, then changes to the object will be reflected in the returned Reader, which may be surprising. If buf is an ordinary bytes object, then there should be no concern.""" reader = _FlatArrayMessageReader(buf) - return reader.get_root(local_module) + return reader.get_root(bound_local_module) return from_bytes - def new_message(local_module): + def new_message(bound_local_module): def helper(): builder = _MallocMessageBuilder() return builder.init_root(bound_local_module)