From d4a2aa0ced7617e1f3436b4828a71daaa6cd283f Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 25 Apr 2025 10:12:43 -0400 Subject: [PATCH] Remove unused assignment The assignment to k is never used, because the block breaks --- Lib/html/parser.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Lib/html/parser.py b/Lib/html/parser.py index 13c95c34e505c8..4a0c5297d97b88 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -226,9 +226,6 @@ def goahead(self, end): if match: # match.group() will contain at least 2 chars if end and match.group() == rawdata[i:]: - k = match.end() - if k <= i: - k = n i = self.updatepos(i, i + 1) # incomplete break