color: use ui.formatted() to test TTYness, not sys.stdout.isatty()
This fixes the color extension not working with pager (broken in
877390020477). The pager extension already sets ui.formatted=True to
allow this use case.
try: import coverage if hasattr(coverage, 'process_startup'): coverage.process_startup()except ImportError: pass