def write(self, out):
        self.write_header(out)
        default_token, tokens = find_colors(self.code)
        tokens = tokens.items()
        tokens.sort(lambda a, b: cmp(len(a[0]), len(a[1])))
        bg_color = [x[3:] for x in default_token.split() if x.startswith('bg:')]
        if bg_color:
            out.write(bg_color[0] % '    background_color = %r\n')
        out.write('    styles = {\n')
        out.write('        %-20s%r\n' % ('Token:', default_token))
        for token, definition in tokens:
            if definition:
                out.write('        %-20s%r\n' % (token + ':', definition))
        out.write('    }')
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Pygments-1.3.1/scripts/vim2pygments.py/StyleWriter.write/swapped operands of `%`