Commit 2965e48a authored by ∞'s avatar 💻

GroupDocDescriptor: instance _doc variable

parent 98ccd216
Pipeline #1885 passed with stages
in 35 seconds
......@@ -15,8 +15,8 @@ class GroupDocDescriptor:
def __get__(self, obj, objtype):
ret = []
if 'value' in self.__dict__:
ret.append(self.value.strip() + '\n')
if '_doc' in obj.__dict__:
ret.append(obj._doc.strip() + '\n')
width = len(max(obj.keys(), key=len)) + 2
for name, cmd in obj.items():
......@@ -45,7 +45,7 @@ class GroupDocDescriptor:
return '\n'.join(ret)
def __set__(self, obj, value):
self.value = value
obj._doc = value
class BaseGroup(collections.OrderedDict):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment