Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Drop use of types.FunctionType.
This code asserted that the callback argument was of type types.FunctionType. It's more pythonic to just check that the argument is callable, and not specifically that it's a function. There are other ways to implement a callback than types.FunctionType. Signed-off-by: Russell Bryant <[email protected]> Acked-by: Ben Pfaff <[email protected]>
- Loading branch information