use six.class_types instead of ClassType, TypeType in cli
This commit is contained in:
parent
e64c57e866
commit
617241bcc1
1 changed files with 1 additions and 1 deletions
2
cli/koji
2
cli/koji
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue