From 54998ee080edfa7540ce249f54b805eab8696227 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 3bb0d0f..53987b3 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))