From: Oleg Broytman Date: Thu, 24 Jul 2025 12:40:04 +0000 (+0300) Subject: Style(cmp): Fix `flake8` warning F824 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=ppu.git Style(cmp): Fix `flake8` warning F824 The warning was "`global pbar` is unused: name is never assigned in scope." Ok, let's assign a dummy value. --- diff --git a/scripts/cmp.py b/scripts/cmp.py index 00ad28d..2114ca7 100755 --- a/scripts/cmp.py +++ b/scripts/cmp.py @@ -9,6 +9,7 @@ import sys def report(silent): if show_pbar: global pbar + pbar = None del pbar if not silent: sys.stderr.write("Files differ at %d megabayte block\n" % count)