(logical_line)
r"""When raising an exception, use "raise ValueError('message')".

    The older form is removed in Python 3.

    Okay: raise DummyError("Message")
    W602: raise DummyError, "Message"
r"""When raising an exception, use "raise ValueError('message')".
r When raising an exception use raise ValueError ( message ) .
def python_3000_raise_comma(logical_line):
    r"""When raising an exception, use "raise ValueError('message')".

    The older form is removed in Python 3.

    Okay: raise DummyError("Message")
    W602: raise DummyError, "Message"
    """
    match = RAISE_COMMA_REGEX.match(logical_line)
    if match and not RERAISE_COMMA_REGEX.match(logical_line):
        yield match.end() - 1, "W602 deprecated form of raising exception"
def python_3000_raise_comma ( logical_line ) : match = RAISE_COMMA_REGEX . match ( logical_line ) if match and not RERAISE_COMMA_REGEX . match ( logical_line ) : yield match . end ( ) - 1 , "W602 deprecated form of raising exception"