/usr/lib/python3/dist-packages/postgresql/protocol/buffer.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 | ##
# .protocol.buffer
##
"""
This is an abstraction module that provides the working buffer implementation.
If a C compiler is not available on the system that built the package, the slower
`postgresql.protocol.pbuffer` module can be used in
`postgresql.port.optimized.buffer`'s absence.
This provides a convenient place to import the necessary module without
concerning the local code with the details.
"""
try:
from ..port.optimized import pq_message_stream
except ImportError:
from .pbuffer import pq_message_stream
|