Skip to content

Commit 066c0d4

Browse files
committed
Use triple-quote form docstrings.
1 parent 6b797b7 commit 066c0d4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

postgresql/python/element.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
from .decorlib import propertydoc
88

99
class RecursiveFactor(Exception):
10-
'Raised when a factor is ultimately composed of itself'
10+
"""
11+
Raised when a factor is ultimately composed of itself.
12+
"""
1113
pass
1214

1315
class Element(object, metaclass = ABCMeta):
@@ -96,7 +98,9 @@ def _e_metas(self):
9698
yield (None, format_element(x))
9799

98100
def prime_factor(obj):
99-
'get the primary factor on the `obj`, returns None if none.'
101+
"""
102+
Get the primary factor on the `obj`, returns None if none.
103+
"""
100104
f = getattr(obj, '_e_factors', None)
101105
if f:
102106
return f[0], getattr(obj, f[0], None)
@@ -126,7 +130,9 @@ def prime_factors(obj):
126130
yield fn, e
127131

128132
def format_element(obj, coverage = ()):
129-
'format the given element with its factors and metadata into a readable string'
133+
"""
134+
Format the given element with its factors and metadata into a readable string.
135+
"""
130136
# if it's not an Element, all there is to return is str(obj)
131137
if obj in coverage:
132138
raise RecursiveFactor(coverage)

0 commit comments

Comments
 (0)