From 245fefcdc5e992b64721945e822426a6e12422c2 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:52:00 +0200 Subject: [PATCH] Apply ruff/flake8-raise rule RSE102 (#349) RSE102 Unnecessary parentheses on raised exception --- xmltodict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltodict.py b/xmltodict.py index 953cf24..9257ca7 100755 --- a/xmltodict.py +++ b/xmltodict.py @@ -132,7 +132,7 @@ def endElement(self, full_name): should_continue = self.item_callback(self.path, item) if not should_continue: - raise ParsingInterrupted() + raise ParsingInterrupted if self.stack: data = (None if not self.data else self.cdata_separator.join(self.data))