Convert ascii value for backward compatibility with python2.x
@@ -62,19 +62,19 @@ class Printer(object):
@staticmethod
def print_header(text):
- click.secho('\n{}\n'.format(text), fg='yellow')
+ click.secho(u'\n{}\n'.format(text), fg='yellow')
@staticmethod
def print_warning(text):
- click.secho('\n{}\n'.format(text), fg='magenta')
+ click.secho(u'\n{}\n'.format(text), fg='magenta')
@staticmethod
def print_success(text, add_sign=False):
- click.secho('\n{}{}\n'.format(u'\u2713 ' if add_sign else '', text), fg='green')
+ click.secho(u'\n{}{}\n'.format(u'\u2713 ' if add_sign else '', text), fg='green')
@staticmethod
def print_error(text, add_sign=False):
- click.secho('\n{}{}\n'.format(u'\u2717 ' if add_sign else '', text), fg='red')
+ click.secho(u'\n{}{}\n'.format(u'\u2717 ' if add_sign else '', text), fg='red')
@staticmethod
def add_color(value, color):
