Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
callable()
to check callable in ldms.Xprt (ldms.pyx)
The `isinstance(cb, types.FunctionType)` check does not cover all callables. If the application supplies a method as `cb`, the `isinstance` check failed. This patch modifies the condition to use `callable()` check instead to cover all callable types.
- Loading branch information