fix StringType and itervalues in plugin and cli
This commit is contained in:
parent
9d812166ac
commit
e64c57e866
2 changed files with 3 additions and 2 deletions
2
cli/koji
2
cli/koji
|
|
@ -51,7 +51,7 @@ def register_plugin(plugin):
|
|||
|
||||
Handlers are functions marked with one of the decorators defined in koji.plugin
|
||||
"""
|
||||
for v in vars(plugin).itervalues():
|
||||
for v in six.itervalues(vars(plugin)):
|
||||
if isinstance(v, (types.ClassType, types.TypeType)):
|
||||
#skip classes
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue