Merge "Use the six callback checker"

This commit is contained in:
Jenkins 2014-01-10 19:23:36 +00:00 committed by Gerrit Code Review
commit c2d900beb7

View File

@ -333,7 +333,7 @@ class TransitionNotifier(object):
" state transition %s"), callback, state)
def register(self, state, callback, args=None, kwargs=None):
assert isinstance(callback, collections.Callable)
assert six.callable(callback), "Callback must be callable"
if self.is_registered(state, callback):
raise ValueError("Callback %s already registered" % (callback))
if kwargs: