/usr/share/pyshared/gearman/__init__.py is in python-gearman 2.0.2-2.
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 17 18 19 20 21 | """
Gearman API - Client, worker, and admin client interfaces
"""
__version__ = '2.0.2'
from gearman.admin_client import GearmanAdminClient
from gearman.client import GearmanClient
from gearman.worker import GearmanWorker
from gearman.connection_manager import DataEncoder
from gearman.constants import PRIORITY_NONE, PRIORITY_LOW, PRIORITY_HIGH, JOB_PENDING, JOB_CREATED, JOB_FAILED, JOB_COMPLETE
import logging
class NullHandler(logging.Handler):
def emit(self, record):
pass
gearman_root_logger = logging.getLogger('gearman')
gearman_root_logger.addHandler(NullHandler())
|