summaryrefslogtreecommitdiffstats
path: root/Python/initconfig.c
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-12-06 22:29:54 (GMT)
committerGitHub <noreply@github.com>2023-12-06 22:29:54 (GMT)
commit16448cab44e23d350824e9ac75e699f5bcc48a14 (patch)
tree1d74137c6f291d6624d44fa1284508cbcd91c771 /Python/initconfig.c
parent3870d19d151c31d77b737d6a480aa946b4e87af6 (diff)
downloadcpython-16448cab44e23d350824e9ac75e699f5bcc48a14.zip
cpython-16448cab44e23d350824e9ac75e699f5bcc48a14.tar.gz
cpython-16448cab44e23d350824e9ac75e699f5bcc48a14.tar.bz2
gh-112730: Use color to highlight error locations (gh-112732)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Python/initconfig.c')
-rw-r--r--Python/initconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c
index d7f3195..06e3179 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -293,6 +293,8 @@ static const char usage_envvars[] =
"PYTHON_FROZEN_MODULES : if this variable is set, it determines whether or not \n"
" frozen modules should be used. The default is \"on\" (or \"off\" if you are \n"
" running a local build).\n"
+"PYTHON_COLORS : If this variable is set to 1, the interpreter will"
+" colorize various kinds of output. Setting it to 0 deactivates this behavior.\n"
"These variables have equivalent command-line parameters (see --help for details):\n"
"PYTHONDEBUG : enable parser debug mode (-d)\n"
"PYTHONDONTWRITEBYTECODE : don't write .pyc files (-B)\n"