コード例 #1
0
 def decorate(self, text, color=None, on_color=None, attrs=None):
     if self.colored_output:
         return termcolor.colored(text, color, on_color, attrs)
     else:
         return text
コード例 #2
0
ファイル: views.py プロジェクト: 104player/mutpy
 def decorate(self, text, color=None, on_color=None, attrs=None):
     if self.colored_output:
         return termcolor.colored(text, color, on_color, attrs)
     else:
         return text