]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind: encode flattened dict
authorKefu Chai <kchai@redhat.com>
Sat, 23 Feb 2019 14:26:48 +0000 (22:26 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 23 Feb 2019 14:47:03 +0000 (22:47 +0800)
commit6cb23f9ce6b3848a7fd93d135acc143f2ae7cba1
treeab2b47d9867330e98fbff5aa962939e8710e50d2
parent31ea5a7e930978151265678aedf4e37ae9e97776
pybind: encode flattened dict

in python3, the keys and values in dict are unicode strings, so we need
to encode them before passing them to underlying librados' C API.

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