diff --git a/capnp/capnp.pyx b/capnp/capnp.pyx index 9dc092e..6d167be 100644 --- a/capnp/capnp.pyx +++ b/capnp/capnp.pyx @@ -429,13 +429,10 @@ cdef _setDynamicField(_DynamicSetterClasses thisptr, field, value, parent): cdef _to_dict(msg): msg_type = type(msg) - print msg_type if msg_type is _DynamicListBuilder or msg_type is _DynamicListReader or msg_type is _DynamicResizableListBuilder: - print 'in list' return [_to_dict(x) for x in msg] if msg_type is _DynamicStructBuilder or msg_type is _DynamicStructReader: - print 'in struct' ret = {} try: which = msg.which() @@ -445,7 +442,6 @@ cdef _to_dict(msg): pass for field in msg.schema.non_union_fields: - print field if msg._has(field): ret[field] = _to_dict(getattr(msg, field))