File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 77from .decorlib import propertydoc
88
99class 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
1315class Element (object , metaclass = ABCMeta ):
@@ -96,7 +98,9 @@ def _e_metas(self):
9698 yield (None , format_element (x ))
9799
98100def 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
128132def 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 )
You can’t perform that action at this time.
0 commit comments