From d06a2f92df7b3133c6c941165009e8d7246948ca Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 25 Apr 2025 10:26:40 -0400 Subject: [PATCH] Remove duplicate check for self.cdata_elem This was already checked in the line above --- Lib/html/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/html/parser.py b/Lib/html/parser.py index 13c95c34e505c8..34000538252dd1 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -243,7 +243,7 @@ def goahead(self, end): assert 0, "interesting.search() lied" # end while if end and i < n and not self.cdata_elem: - if self.convert_charrefs and not self.cdata_elem: + if self.convert_charrefs: self.handle_data(unescape(rawdata[i:n])) else: self.handle_data(rawdata[i:n])