Skip to content

Commit d7cf42f

Browse files
committed
Remove dependency on python-termcolor
Fix #413
1 parent e1a7a37 commit d7cf42f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

jsk_tools/package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<run_depend>python-colorama</run_depend>
2222
<run_depend>python-pygithub3</run_depend>
2323
<run_depend>python-slacker-cli</run_depend>
24-
<run_depend>python-termcolor</run_depend>
2524
<run_depend>python-texttable</run_depend>
2625
<run_depend>rosgraph_msgs</run_depend>
2726
<run_depend>rospy</run_depend>

jsk_tools/src/jsk_tools/sanity_lib.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
pip install colorama"""
1717
sys.exit(1)
1818
from colorama import Fore, Style
19-
import termcolor
2019

2120
def okMessage(msg):
2221
print Fore.GREEN + "[OK] %s" % (msg) + Fore.RESET
@@ -66,9 +65,9 @@ def __init__(self, topic_name, timeout=5, echo=False, data_class=None):
6665

6766
def callback(self, msg):
6867
if self.echo and self.msg is None: # this is first time
69-
termcolor.cprint('--- Echo %s' % self.topic_name, 'magenta')
68+
print(colored('--- Echo %s' % self.topic_name, 'purple'))
7069
field_filter = rostopic.create_field_filter(echo_nostr=False, echo_noarr=True)
71-
termcolor.cprint(genpy.message.strify_message(msg, field_filter=field_filter), 'cyan')
70+
print(colored(genpy.message.strify_message(msg, field_filter=field_filter), 'cyan'))
7271
self.msg = msg
7372

7473
def check(self):

0 commit comments

Comments
 (0)