Currently success, failure, warning and bold do almost exactly the same thing, without applying DRY rule. They should use common code part, allowing for flexibility in future feature creation.
Create additional method, eg. _formatted_message(msg, color=1, bold=False), to support code reuse.
Currently
success,failure,warningandbolddo almost exactly the same thing, without applying DRY rule. They should use common code part, allowing for flexibility in future feature creation.Create additional method, eg.
_formatted_message(msg, color=1, bold=False), to support code reuse.