isinstance(f, collections.Callable) is more correct
1 file changed