def ansi_color_style(style='default'):
 if (style in ANSI_STYLES):
  cmap = ANSI_STYLES[style]
 else:
  msg = 'Could not find color style {0!r}, using default.'.format(style)
  warnings.warn(msg, RuntimeWarning)
  cmap = ANSI_STYLES['default']
 return cmap

def ansi_color_style ( style = 'default' ) : if ( style in ANSI_STYLES ) : cmap = ANSI_STYLES [ style ] else : msg = 'Could not find color style {0!r}, using default.' . format ( style ) warnings . warn ( msg , RuntimeWarning ) cmap = ANSI_STYLES [ 'default' ] return cmap
returns the current color map .