Skip to content

Commit f84f6b1

Browse files
author
James William Pye
committed
Add doc-strings.
1 parent 1e1d6bf commit f84f6b1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

postgresql/message.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def _e_metas(self, get0 = itemgetter(0)):
4949
)
5050

5151
def isconsistent(self, other):
52+
"""
53+
Return `True` if the all the fields of the message in `self` are
54+
equivalent to the fields in `other`.
55+
"""
5256
if not isinstance(other, self.__class__):
5357
return False
5458
# creator is contextual information
@@ -99,6 +103,10 @@ def __repr__(self):
99103

100104
@property
101105
def location_string(self):
106+
"""
107+
A single line representation of the 'file', 'line', and 'function' keys
108+
in the `details` dictionary.
109+
"""
102110
details = self.details
103111
loc = [
104112
details.get(k, '?') for k in ('file', 'line', 'function')

0 commit comments

Comments
 (0)