]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: do not encode bytes 36918/head
authorKefu Chai <kchai@redhat.com>
Fri, 4 Sep 2020 03:44:38 +0000 (11:44 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 16:30:55 +0000 (00:30 +0800)
the annotations ensures the type of input parameter, so no need to
encode a bytes object anymore

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/rados.pyx

index d5096419ca342ddfbfae933f1553ddc537719856..e2bf59067fc88bc516305248c70ad4c34b79e816 100644 (file)
@@ -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