def __init__(self, output=None, indent=2, linebreak=False, bold=False,
disabled=not SUPPORTS_ANSI):
self._indentation_factor = indent
self._indent = 0
self._linebreak = linebreak
self._bold = bold
self._in_format = False
self._disabled = disabled
self.output = output or sys.stdout
if disabled:
self._backcolors = empty()
self._forecolors = empty()
self._modifiers = empty()
else:
self._backcolors = backcolors()
self._forecolors = forecolors()
self._modifiers = modifiers()
评论列表
文章目录