You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-cluster/ceph/files/ceph-10.2.5-Make-CephFS-bin...

23 lines
794 B

commit e1dc386f93eb4613dc7e89cc76a031aeee5022ba
Author: Oleh Prypin <oleh@pryp.in>
Date: Thu Jul 21 18:33:25 2016 +0300
pybind: Make CephFS bindings and tests compatible with Python 3
Signed-off-by: Oleh Prypin <oleh@pryp.in>
diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx
index ac17ada1a1..bd14de3b16 100644
--- a/src/pybind/cephfs/cephfs.pyx
+++ b/src/pybind/cephfs/cephfs.pyx
@@ -613,8 +613,7 @@ cdef class LibCephFS(object):
if not isinstance(mode, int):
raise TypeError('mode must be an int')
- if isinstance(flags, basestring):
- flags = cstr(flags, 'flags')
+ if isinstance(flags, str_type):
cephfs_flags = 0
if flags == '':
cephfs_flags = os.O_RDONLY