]> git.apps.os.sepia.ceph.com Git - ceph.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>
Wed, 5 May 2021 06:32:25 +0000 (14:32 +0800)
commitf857c227ff78b9964fc3fd414beaea6b1ed97976
tree75868bd9e625c3427ed9919d49c95703531b4d3c
parent7db0f6f717b9ee7e0eab03a25665b3b36c8ffdc5
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>
(cherry picked from commit 6cb23f9ce6b3848a7fd93d135acc143f2ae7cba1)
src/pybind/rados/rados.pyx