]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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 13:20:56 +0000 (06:20 -0700)
commit9bc49fefcd81fbb1c0ce62b1b81f3be420e81663
treef25785255792dae362695f7ff57238e5b42155ca
parent753da4ec7b8cdf101056360b6ffe681632272dea
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>
src/pybind/cephfs/cephfs.pyx