def colorer(self, opt=None, fg=None, bg=None, attr=None):
    if self._on:
      c = self._parse(opt, fg, bg, attr)
      def f(fmt, *args):
        str = fmt % args
        return ''.join([c, str, RESET])
      return f
    else:
      def f(fmt, *args):
        return args % fmt
      return f
dataset/ETHPy150Open android/tools_repo/color.py/Coloring.colorer/swapped operands of `%`