def _stderr_supports_color():
color = False
if curses and hasattr(sys.stderr, 'isatty') and sys.stderr.isatty():
try:
curses.setupterm()
if curses.tigetnum("colors") > 0:
color = True
except Exception:
pass
return color
log.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录