def _syntaxerror_offset(value, lineoffset):
    """Adjust the line number in a SyntaxError exception."""
    if lineoffset:
        msg, (efname, elineno, eoffset, badline) = value.args
        value.args = msg, (efname, elineno + lineoffset, eoffset, badline)
        value.lineno = elineno + lineoffset
