def _build_section(self, header, iterable):
section = []
if iterable:
section.append(header)
section.append('-'*len(header))
for key, value in iterable.items():
variable_line = (
"{item} : {type}".format(item=key, type=value.qiime_type))
if value.has_default():
variable_line += ", optional"
section.append(variable_line)
if value.has_description():
section.append(textwrap.indent(textwrap.fill(
str(value.description), width=71), ' '))
return '\n'.join(section).strip()
评论列表
文章目录