Open arturloewen opened 1 year ago
Required change: class style(): BLACK = "" RED = "" GREEN = "" YELLOW = "" BLUE = "" MAGENTA = "" CYAN = "" WHITE = "" UNDERLINE = "" RESET = "" to class style(): BLACK = lambda x: str(x) RED = lambda x: str(x) GREEN = lambda x: str(x) YELLOW = lambda x: str(x) BLUE = lambda x: str(x) MAGENTA = lambda x: str(x) CYAN = lambda x: str(x) WHITE = lambda x: str(x) UNDERLINE = lambda x: str(x) RESET = lambda x: str(x)
https://github.com/0x48piraj/rqmts/blob/51b27bfd7863b166963e35f3ae1c41e3d3f798ed/rqmts/__main__.py#L8
Also, here's the hot fix for all the OSX and Linux users,
if any(x in sys.platform.lower() for x in ['linux', 'linux2', 'win32', 'darwin']):
For installing from the source,
$ python3 setup.py install
Required change: class style(): BLACK = "" RED = "" GREEN = "" YELLOW = "" BLUE = "" MAGENTA = "" CYAN = "" WHITE = "" UNDERLINE = "" RESET = "" to class style(): BLACK = lambda x: str(x) RED = lambda x: str(x) GREEN = lambda x: str(x) YELLOW = lambda x: str(x) BLUE = lambda x: str(x) MAGENTA = lambda x: str(x) CYAN = lambda x: str(x) WHITE = lambda x: str(x) UNDERLINE = lambda x: str(x) RESET = lambda x: str(x)