# Path: pubs/color.py
# COLOR_LIST = {'black': '0', 'red': '1', 'green': '2', 'yellow': '3', 'blue': '4',
#               'magenta': '5', 'cyan': '6', 'grey': '7',
#               'brightblack': '8', 'brightred': '9', 'brightgreen': '10',
#               'brightyellow': '11', 'brightblue': '12', 'brightmagenta': '13',
#               'brightcyan': '14', 'brightgrey': '15',
#               'darkgrey': '8', # == brightblack
#               'gray': '7', 'darkgray': '8', 'brightgray': '15', # gray/grey spelling
#               'purple': '5', # for compatibility reasons
#               'white': '15' # == brightgrey
#              }
# COLORS_OUT = generate_colors(sys.stdout, color=False, bold=False, italic=False)
# COLORS_ERR = generate_colors(sys.stderr, color=False, bold=False, italic=False)
#     COLORS_OUT = generate_colors(sys.stdout, force_colors=force_colors,
#                                  color =conf['formating']['color'],
#                                  bold  =conf['formating']['bold'],
#                                  italic=conf['formating']['italics'])
#     COLORS_ERR = generate_colors(sys.stderr, force_colors=force_colors,
#                                  color =conf['formating']['color'],
#                                  bold  =conf['formating']['bold'],
#                                  italic=conf['formating']['italics'])
# def _color_supported(stream, force=False):
# def generate_colors(stream, color=True, bold=True, italic=True, force_colors=False):
# def dye_out(s, color='end'):
# def dye_err(s, color='end'):
# def setup(conf, force_colors=False):
# def undye(s):


import dotdot
from pubs import color


def perf_color():
    s = str(list(range(1000)))
    for _ in range(5000000):
        color.dye_out(s, 'red')


if __name__ == '__main__':

# Path: pubs/color.py
# COLOR_LIST = {'black': '0', 'red': '1', 'green': '2', 'yellow': '3', 'blue': '4',
#               'magenta': '5', 'cyan': '6', 'grey': '7',
#               'brightblack': '8', 'brightred': '9', 'brightgreen': '10',
#               'brightyellow': '11', 'brightblue': '12', 'brightmagenta': '13',
#               'brightcyan': '14', 'brightgrey': '15',
#               'darkgrey': '8', # == brightblack
#               'gray': '7', 'darkgray': '8', 'brightgray': '15', # gray/grey spelling
#               'purple': '5', # for compatibility reasons
#               'white': '15' # == brightgrey
#              }
# COLORS_OUT = generate_colors(sys.stdout, color=False, bold=False, italic=False)
# COLORS_ERR = generate_colors(sys.stderr, color=False, bold=False, italic=False)
#     COLORS_OUT = generate_colors(sys.stdout, force_colors=force_colors,
#                                  color =conf['formating']['color'],
#                                  bold  =conf['formating']['bold'],
#                                  italic=conf['formating']['italics'])
#     COLORS_ERR = generate_colors(sys.stderr, force_colors=force_colors,
#                                  color =conf['formating']['color'],
#                                  bold  =conf['formating']['bold'],
#                                  italic=conf['formating']['italics'])
# def _color_supported(stream, force=False):
# def generate_colors(stream, color=True, bold=True, italic=True, force_colors=False):
# def dye_out(s, color='end'):
# def dye_err(s, color='end'):
# def setup(conf, force_colors=False):
# def undye(s):


# Path: tests/test_color.py
import dotdot
from pubs import color



def perf_color():
    s = str(list(range(1000)))
    for _ in range(5000000):
        color.dye_out(s, 'red')


if __name__ == '__main__':

    perf_color()