Commits

Georg Brandl committed bac40c7

Add credit for Barry.

Comments (0)

Files changed (2)

 * Antonio Valentino -- qthelp builder
 * Pauli Virtanen -- autodoc improvements, autosummary extension
 * Stefan van der Walt -- autosummary extension
+* Barry Warsaw -- setup command improvements
 * Sebastian Wiesner -- image handling, distutils support
 
 Many thanks for all contributions!
 from sphinx.errors import SphinxError
 from sphinx.application import Sphinx
 from sphinx.util import Tee, format_exception_cut_frames, save_traceback
-from sphinx.util.console import red, nocolor, color_terminal
+from sphinx.util.console import red, nocolor, init_color
 
 
 def usage(argv, msg=None):
 
 
 def main(argv):
-    if not color_terminal():
-        # Windows' poor cmd box doesn't understand ANSI sequences
-        nocolor()
-
+    init_color()
     try:
         opts, args = getopt.getopt(argv[1:], 'ab:t:d:c:CD:A:ng:NEqQWw:P')
         allopts = set(opt[0] for opt in opts)