This transform removes parentheses when raising builtin exceptions with no arguments.
The raise statement automatically instantiates exceptions with no arguments, so the parentheses are unnecessary. This transform does nothing on Python 2.
If the exception is not a builtin exception, or has arguments, the parentheses are not removed.
This transform is enabled by default. Disable by passing the remove_builtin_exception_brackets=False
argument to the :func:`python_minifier.minify` function,
or passing --no-remove-builtin-exception-brackets
to the pyminify command.
.. literalinclude:: remove_builtin_exception_brackets.py
.. literalinclude:: remove_builtin_exception_brackets.min.py :language: python