def process(self, stack, stream):
        for ttype, value in stream:
            if ttype is T.Literal.String.Single:
                if value[:2] == '\'\'':
                    inner = value[2:-2]
                    quote = u'\'\''
                else:
                    inner = value[1:-1]
                    quote = u'\''
                if self.width > len(inner):
                    value = u''.join((quote, inner[:self.width], self.char,
                                      quote))
            yield ttype, value
dataset/ETHPy150Open andialbrecht/sqlparse/sqlparse/filters.py/TruncateStringFilter.process/swapped operands of `>`