]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024) (GH-96498)
authorGregory P. Smith <greg@krypto.org>
Fri, 2 Sep 2022 03:53:11 +0000 (20:53 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Sep 2022 03:53:11 +0000 (23:53 -0400)
Previous to commit ee171a2 the logline was working because of self.info() (now
deprecated) defaults to an empty message.

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
Doc/tools/extensions/suspicious.py

index fd50f318170b15324a6191f28d9256c49468690f..9e814fb94d2b56f596a40055855249b6430bdb5f 100644 (file)
@@ -150,7 +150,6 @@ class CheckSuspiciousMarkupBuilder(Builder):
         return False
 
     def report_issue(self, text, lineno, issue):
-        if not self.any_issue: self.logger.info()
         self.any_issue = True
         self.write_log_entry(lineno, issue, text)
         if py3: