]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/rados: define unicode alias
authorKefu Chai <kchai@redhat.com>
Tue, 1 Sep 2020 13:53:10 +0000 (21:53 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 16:30:55 +0000 (00:30 +0800)
commita7b506046e79da8a0fb476a91fa357112e8670a8
treeec4330f324954f6109a58a70924f5c56c16f2aba
parenta56cd5630d4ac330cc5391ad6695c5561b66efc9
pybind/rados: define unicode alias

for silencing warnings like:

WARNING: Cannot resolve forward reference in type annotations of "rados.Rados.conf_get": name 'unicode' is not defined

because cython < 3.0 with language_level = "3", translates "str" to "unicode"
to be python2 compatible, but we've migrated to python3. and the specified
"language_level" is "3'. see also
https://github.com/cython/cython/issues/1370

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