def to_short(self):
    b = ''
    for c in self._b:
        if (c == b'\\'):
            b += BACKSLASH
        elif (c == b'\n'):
            b += (BACKSLASH + 'n')
        elif (c == self.quote):
            b += (BACKSLASH + self.quote)
        elif (c >= 128):
            b += (BACKSLASH + chr(c))
        else:
            b += chr(c)
    return b
def to_short(self):
    b = 
    for c in self._b:
        if (c == b'\\'):
            b += BACKSLASH
        elif (c == b'\n'):
            b += (BACKSLASH + 'n')
        elif (c == self.quote):
            b += (BACKSLASH + self.quote)
        elif (c >= 128):
            b += (BACKSLASH + chr(c))
        else:
            b += chr(c)
    return b