From: Rishabh Dave Date: Fri, 13 Dec 2019 06:51:03 +0000 (+0530) Subject: pybind/cephfs: move LibCephFSStateError closer to base class X-Git-Tag: v15.1.0~258^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=863b47b210605df1294fa1c3290bbe4be95e0847;p=ceph-ci.git pybind/cephfs: move LibCephFSStateError closer to base class At first look it appears that class OSError is the only class derived from class Error which makes class Error look redundant. Therefore, it's better to move class LibCephFSStateError from the bunch of exception classes derived from OSError to closer to class Error. Signed-off-by: Rishabh Dave --- diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx index 975abd26c58..c2027707c7c 100644 --- a/src/pybind/cephfs/cephfs.pyx +++ b/src/pybind/cephfs/cephfs.pyx @@ -187,6 +187,10 @@ class Error(Exception): return 1 +class LibCephFSStateError(Error): + pass + + class OSError(Error): def __init__(self, errno, strerror): super(OSError, self).__init__(errno, strerror) @@ -232,10 +236,6 @@ class OperationNotSupported(OSError): pass -class LibCephFSStateError(Error): - pass - - class WouldBlock(OSError): pass