]> git.phdru.name Git - ppu.git/commitdiff
Style(cmp): Fix `flake8` warning F824 master
authorOleg Broytman <phd@phdru.name>
Thu, 24 Jul 2025 12:40:04 +0000 (15:40 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 14 Aug 2025 19:21:49 +0000 (22:21 +0300)
The warning was "`global pbar` is unused: name is never assigned in scope."
Ok, let's assign a dummy value.

scripts/cmp.py

index 00ad28d99ca45f59e6e847817cf96733eaa5b853..2114ca7956d463ba027d81d91befb99a91753681 100755 (executable)
@@ -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)