Merge "Fix isinstance call"

This commit is contained in:
Jenkins 2016-03-11 22:31:46 +00:00 committed by Gerrit Code Review
commit 2e2ac99e0d

View File

@ -204,7 +204,7 @@ class _OptFormatter(object):
# https://bugs.launchpad.net/keystoneauth/+bug/1548433 for
# more details.
import warnings
if not isinstance(cfg.Opt, opt):
if not isinstance(opt, cfg.Opt):
warnings.warn(
'Incompatible option class for %s (%r): %s' %
(opt.dest, opt.__class__, err),