Skip to content

Commit

Permalink
Merge pull request #1417 from wkentaro/remove-termcolor
Browse files Browse the repository at this point in the history
Remove dependency on python-termcolor
  • Loading branch information
YoheiKakiuchi authored Jun 22, 2016
2 parents e1a7a37 + c047f15 commit 4954d8e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion jsk_tools/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<run_depend>python-colorama</run_depend>
<run_depend>python-pygithub3</run_depend>
<run_depend>python-slacker-cli</run_depend>
<run_depend>python-termcolor</run_depend>
<run_depend>python-texttable</run_depend>
<run_depend>rosgraph_msgs</run_depend>
<run_depend>rospy</run_depend>
Expand Down
5 changes: 2 additions & 3 deletions jsk_tools/src/jsk_tools/sanity_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
pip install colorama"""
sys.exit(1)
from colorama import Fore, Style
import termcolor

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

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

def check(self):
Expand Down
2 changes: 0 additions & 2 deletions jsk_tools/test/python/test_sanity_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import rospy
import std_msgs.msg

import termcolor


class TestSanityLib(unittest.TestCase):

Expand Down

0 comments on commit 4954d8e

Please sign in to comment.