

def __init__(self, value, context):
    if value.startswith('r'):
        value = value[1:]
        raw = True
    else:
        raw = False
    if value.startswith("'''"):
        assert value.endswith("'''")
        value = value[3:(- 3)]
    elif value.startswith('"""'):
        assert value.endswith('"""')
        value = value[3:(- 3)]
    elif value.startswith('"'):
        assert value.endswith('"')
        value = value[1:(- 1)]
    elif value.startswith("'"):
        assert value.endswith("'")
        value = value[1:(- 1)]
    else:
        raise NotImplementedError(value)
    if (not raw):
        value = '\\'.join(map(self._rep, value.split('\\\\')))
    super().__init__(value, context)

dataset/ETHPy150Open tailhook/pyzza/pyzza/parser.py String.__init__/original