Innovenergy_trunk/firmware/Cerbo_Release/CerboReleaseFiles/pika-0.13.1/pika/utils.py

17 lines
331 B
Python
Raw Normal View History

2024-06-05 10:33:44 +00:00
"""
Non-module specific functions shared by modules in the pika package
"""
import collections
def is_callable(handle):
"""Returns a bool value if the handle passed in is a callable
method/function
:param any handle: The object to check
:rtype: bool
"""
return isinstance(handle, collections.Callable)