summaryrefslogtreecommitdiff
path: root/sphinx/util
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2014-07-05 01:39:13 +0900
committershimizukawa <shimizukawa@gmail.com>2014-07-05 01:39:13 +0900
commit4bf71bf3df8b59d242bf291d2b3442b004013c47 (patch)
treee140c38aa69ae616b07d4dc6517310540cf65c7c /sphinx/util
parent67d66af4700d5468c82b5ebb6b6bfa25fd43ad49 (diff)
downloadsphinx-4bf71bf3df8b59d242bf291d2b3442b004013c47.tar.gz
Update documentation and `sphinx-build -N` option behavior for windows color console support. closes #1291.
Diffstat (limited to 'sphinx/util')
-rw-r--r--sphinx/util/console.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/util/console.py b/sphinx/util/console.py
index 64eb4e47..2acc8ead 100644
--- a/sphinx/util/console.py
+++ b/sphinx/util/console.py
@@ -64,6 +64,8 @@ def color_terminal():
def nocolor():
+ if sys.platform == 'win32' and colorama is not None:
+ colorama.deinit()
codes.clear()
def coloron():