From b9a5a6791de423ac9e79db9a0b359eb621820b8c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 1 May 2010 10:54:58 +0200 Subject: [PATCH] Add credit for Barry. --- AUTHORS | 1 + sphinx/cmdline.py | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/AUTHORS b/AUTHORS index 135b931e9a..92deb7910e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,6 +27,7 @@ Other contributors, listed alphabetically, are: * 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! diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index e3e944656f..8f8e6b3133 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -21,7 +21,7 @@ from sphinx import __version__ 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): @@ -57,10 +57,7 @@ Modi: 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)