From: Danny Al-Gaaf Date: Tue, 3 Mar 2015 10:10:25 +0000 (+0100) Subject: ceph_argparse.py: pep8 E721 don't compare types, use 'isinstance()' X-Git-Tag: v9.0.0~219^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8c8cdf2854c1d7a930bba44d89658e8c1ebf14f3;p=ceph.git ceph_argparse.py: pep8 E721 don't compare types, use 'isinstance()' Signed-off-by: Danny Al-Gaaf --- diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index 7640696fccc0..e66ded54a8c3 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -647,7 +647,7 @@ def parse_funcsig(sig): # locally-defined class. otherwise, we haven't a clue. if desc['type'] in globals(): t = globals()[desc['type']] - if type(t) != types.TypeType: + if not isinstance(t, types.TypeType): s = 'unknown type {0}'.format(desc['type']) raise JsonFormat(s) else: