'Set the contents of this object from a serialized string.'

def set_raw_string(self, text, sha=None):

    if (not isinstance(text, bytes)):
        raise TypeError(('Expected    bytes    for    text,    got    %r' % text))
    self.set_raw_chunks([text], sha)
