]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
squash! daemon/defer: resolve pylint warning docs-defer-hard-t-wlwi0n/deployments/7442 defer-hard-timeout 1661/head
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 20 Aug 2025 11:52:11 +0000 (13:52 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 20 Aug 2025 11:55:32 +0000 (13:55 +0200)
We're using ruff instead of pylint now.
So maybe it's worth cleaning this commit up somewhat more.

python/knot_resolver/controller/supervisord/plugin/patch_logger.py

index f401d95c877b8278621e2660446bddd06395dd27..d320ea5c426216f98ed3d7fcecf413bce8ddf764 100644 (file)
@@ -46,7 +46,7 @@ def p_output_dispatcher_log(self: POutputDispatcher, data: bytearray):
             if loglevel_match:
                 # just strip the loglevel as supervisor cannot handle it;
                 # used only for target=syslog without systemd
-                line = loglevel_match.group(2)  # pylint: disable=redefined-loop-name
+                line = loglevel_match.group(2)  # noqa: PLW2901
             else:
                 # no loglevel found, mark as stdio output to retain previous behaviour
                 if self.channel == "stderr":