From: Kefu Chai Date: Fri, 4 Sep 2020 03:44:38 +0000 (+0800) Subject: pybind/rados: do not encode bytes X-Git-Tag: v16.1.0~1112^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36918%2Fhead;p=ceph.git pybind/rados: do not encode bytes the annotations ensures the type of input parameter, so no need to encode a bytes object anymore Signed-off-by: Kefu Chai --- diff --git a/src/pybind/rados/rados.pyx b/src/pybind/rados/rados.pyx index d5096419ca34..e2bf59067fc8 100644 --- a/src/pybind/rados/rados.pyx +++ b/src/pybind/rados/rados.pyx @@ -1321,7 +1321,6 @@ Rados object in state %s." % self.state) target = str(target) target = cstr(target, 'target', opt=True) - inbuf = cstr(inbuf, 'inbuf') cdef: char *_target = opt_str(target) @@ -1422,7 +1421,6 @@ Rados object in state %s." % self.state) self.require_state("connected") cmds = [cstr(cmd, 'cmd')] - inbuf = cstr(inbuf, 'inbuf') target = cstr(target, 'target', opt=True) cdef: @@ -1482,7 +1480,6 @@ Rados object in state %s." % self.state) pgid_raw = cstr(pgid, 'pgid') cmds = [cstr(cmd, 'cmd')] - inbuf = cstr(inbuf, 'inbuf') cdef: char *_pgid = pgid_raw