parameters: (logical_line)
docstring: 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"
docstring_summary: r"""When raising an exception, use "raise ValueError('message')".
docstring_tokens: r When raising an exception use raise ValueError ( message ) .
function: 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"
function_tokens: 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"