/usr/lib/python3/dist-packages/pika/utils.py is in python3-pika 0.11.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | """
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)
|