Utility func, for printing colorful logs in console... @args: -- str : String to be modified. color : color code to which the string will be formed. default is 'r'=RED @returns: -- str : final modified string with foreground color as per parameters.
(str, color="r")
| 50 | |
| 51 | |
| 52 | def paint(str, color="r"): |
| 53 | """Utility func, for printing colorful logs in console... |
| 54 | |
| 55 | @args: |
| 56 | -- |
| 57 | str : String to be modified. |
| 58 | color : color code to which the string will be formed. default is 'r'=RED |
| 59 | |
| 60 | @returns: |
| 61 | -- |
| 62 | str : final modified string with foreground color as per parameters. |
| 63 | |
| 64 | """ |
| 65 | if color in switcher: |
| 66 | str = switcher[color] + str + Style.RESET_ALL |
| 67 | return str |
| 68 | |
| 69 | |
| 70 | TAG = paint("TF-IDF-GENE/", "b") |
no outgoing calls
no test coverage detected