| Summary: | incorrect def for output.ctext | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marshall McMullen <mcmullen> |
| Component: | Eclasses | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Jakub Moc (RETIRED)
2005-10-30 01:15:06 UTC
In output.py, the following is defined:
def ctext(color,text):
return codes[ctext]+text+codes["reset"]
This most certainly should be:
def ctext(color,text):
return codes[color]+text+codes["reset"]
Reproducible: Always
Steps to Reproduce:
Try running this code from python:
import output
msg = output.ctext("yellow","Testing text")
Actual Results:
It throws an error saying that 'yellow' is not in 'codes' list.
Expected Results:
It should look up a color code and color the text based on color submitted....
|