def __str__(self):
    '\n        The smallest python literal representation of a string\n\n        :rtype: str\n\n        '
    if (self._b == b''):
        return ''
    if (len(self.quote) == 1):
        s = self.to_short()
    else:
        s = self.to_long()
    assert (eval(((('b' + self.quote) + s) + self.quote)) == self._b)
    return s
The smallest python literal representation of a string

:rtype: str
def __str__(self):
    '\n        The smallest python literal representation of a string\n\n        :rtype: str\n\n        '
    if (self._b == b):
        return 
    if (len(self.quote) == 1):
        s = self.to_short()
    else:
        s = self.to_long()
    assert (eval(((('b' + self.quote) + s) + self.quote)) == self._b)
    return s