def color_remap():
        "remap colorization"

	if not os.path.exists('/etc/portage/color.map'):
		return

	for line in open('/etc/portage/color.map'):
		if '=' not in line:
			# invalid
			continue
		if line.startswith('#'):
			# comment
			continue
		key, val = line.split('=', 1)
		if key in codes.keys():
			codes[key] = esc_seq + val[:-1]

color_remap()
