]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind: auto encode/decode cstr
authorKefu Chai <kchai@redhat.com>
Thu, 21 Feb 2019 15:00:35 +0000 (23:00 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Feb 2019 15:05:52 +0000 (23:05 +0800)
commitc36d0f1a7de4668eb81075e4a94846cf81fc30cd
tree013c59563328fd899d6d9334adcac14cd866a8b4
parentded3d43dbf8a36daa65d8efe406af4d12ffc7dd8
pybind: auto encode/decode cstr

assuming all string in the cythonized string use the legacy python2
string type, instead of using the unicode, and assuming all c strings
are ASCII, so we don't need encode/decode them when coerce from/to C
strings.

this helps when generating py3 bindings

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