use six.class_types instead of ClassType, TypeType in cli

This commit is contained in:
Yuming Zhu 2017-06-21 22:06:53 +08:00 committed by Mike McLean
parent e64c57e866
commit 617241bcc1

View file

@ -52,7 +52,7 @@ def register_plugin(plugin):
Handlers are functions marked with one of the decorators defined in koji.plugin
"""
for v in six.itervalues(vars(plugin)):
if isinstance(v, (types.ClassType, types.TypeType)):
if isinstance(v, six.class_types):
#skip classes
continue
if callable(v):