/usr/lib/python3/dist-packages/postgresql/python/doc.py is in python3-postgresql 1.1.0-1build1.
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 | ##
# .python.doc
##
"""
Documentation Tools.
"""
from operator import attrgetter
class Doc(object):
"""
Simple object that sets the __doc__ attribute to the first parameter and
initializes __annotations__ using keyword arguments.
"""
def __init__(self, doc, **annotations):
self.__doc__ = str(doc)
self.__annotations__ = annotations
__str__ = attrgetter('__doc__')
|