]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/cephfs: avoid unicode check
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 19 Jun 2019 03:38:26 +0000 (20:38 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 20 Jun 2019 22:39:43 +0000 (15:39 -0700)
commit9defc45a60a1d31f7a4d1727067d90fe9849b749
tree751f140fb65e045177e3a6da6a1be3211f6abd4e
parentff364093996f378769725ec1683f9e5609050259
pybind/cephfs: avoid unicode check

py3 does not have the unicode built-in. Instead, simply try to do the encoding
and catch failures appropriately. If it quacks like a duck...

(Note that cython apparently cheats and allows the unicode check but this is
simpler.)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 9bc49fefcd81fbb1c0ce62b1b81f3be420e81663)
src/pybind/cephfs/cephfs.pyx