diff options
author | Eric Lin <anselor@gmail.com> | 2018-04-17 12:21:52 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2018-04-17 12:21:59 -0400 |
commit | 658562235b9f4fd7b5ebb01b386cba9dc541e4e7 (patch) | |
tree | b6e15412bb7e3def4fe2edfbba5769bb9f2fe9a1 | |
parent | de471a898eecdc49addf5912d6b43aa218ee85da (diff) | |
download | cmd2-git-658562235b9f4fd7b5ebb01b386cba9dc541e4e7.tar.gz |
Bringing back color. Updated dependencies to include colorama.
-rwxr-xr-x | AutoCompleter.py | 6 | ||||
-rwxr-xr-x | setup.py | 2 |
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) @@ -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 |