/usr/lib/python2.7/dist-packages/requests_kerberos/compat.py is in python-requests-kerberos 0.7.0-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 | """
Compatibility library for older versions of python
"""
import sys
# python 2.7 introduced a NullHandler which we want to use, but to support
# older versions, we implement our own if needed.
if sys.version_info[:2] > (2, 6):
from logging import NullHandler
else:
from logging import Handler
class NullHandler(Handler):
def emit(self, record):
pass
|