prop = getattr(glyphclass, kw)
if prop.__doc__:
typ = prop.__class__.__name__
desc = " ".join(x.strip() for x in prop.__doc__.strip().split("\n\n")[0].split("\n"))
else:
typ = str(prop)
desc = ""
After Change
kws = glyphclass.properties() - set(argspecs)
for kw in kws:
// these are not really useful, and should also really be private, just skip them
if kw in omissions: continue
descriptor = getattr(glyphclass, kw)
typ = descriptor.property._sphinx_type()
if descriptor.__doc__:
desc = "\n ".join(textwrap.dedent(descriptor.__doc__).split("\n"))
else:
desc = ""
kwlines.append(_arg_template % (kw, typ, desc, descriptor.class_default(glyphclass)))