summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-04-17 12:21:52 -0400
committerEric Lin <anselor@gmail.com>2018-04-17 12:21:59 -0400
commit658562235b9f4fd7b5ebb01b386cba9dc541e4e7 (patch)
treeb6e15412bb7e3def4fe2edfbba5769bb9f2fe9a1
parentde471a898eecdc49addf5912d6b43aa218ee85da (diff)
downloadcmd2-git-658562235b9f4fd7b5ebb01b386cba9dc541e4e7.tar.gz
Bringing back color. Updated dependencies to include colorama.
-rwxr-xr-xAutoCompleter.py6
-rwxr-xr-xsetup.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/AutoCompleter.py b/AutoCompleter.py
index dea47e67..5e6d04bf 100755
--- a/AutoCompleter.py
+++ b/AutoCompleter.py
@@ -8,7 +8,7 @@ try:
from typing import List, Dict, Tuple, Callable, Union
except:
pass
-# from colorama import Fore
+from colorama import Fore
class _RangeAction(object):
@@ -742,8 +742,8 @@ class ACArgumentParser(argparse.ArgumentParser):
formatted_message += '\n ' + line
linum += 1
- # sys.stderr.write(Fore.LIGHTRED_EX + '{}\n\n'.format(formatted_message) + Fore.RESET)
- sys.stderr.write('{}\n\n'.format(formatted_message))
+ sys.stderr.write(Fore.LIGHTRED_EX + '{}\n\n'.format(formatted_message) + Fore.RESET)
+ # sys.stderr.write('{}\n\n'.format(formatted_message))
self.print_help()
sys.exit(1)
diff --git a/setup.py b/setup.py
index 0944c585..e90f49d6 100755
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,7 @@ Programming Language :: Python :: Implementation :: PyPy3
Topic :: Software Development :: Libraries :: Python Modules
""".splitlines())))
-INSTALL_REQUIRES = ['pyparsing >= 2.1.0', 'pyperclip >= 1.5.27']
+INSTALL_REQUIRES = ['pyparsing >= 2.1.0', 'pyperclip >= 1.5.27', 'colorama']
EXTRAS_REQUIRE = {
# Windows also requires pyreadline to ensure tab completion works