Cloner: appease Ruff vs PLW2901 (redefined-loop-name)
commit0848275cb1464375042333225dd43d2d4f0cd41f
authoranonym <anonym@riseup.net>
Thu, 14 Mar 2024 09:44:47 +0000 (14 10:44 +0100)
committeranonym <anonym@riseup.net>
Thu, 14 Mar 2024 12:40:08 +0000 (14 13:40 +0100)
treefde09ec5fe3e6a1b43025f993b551d71bc6c60c6
parentcba05366878ce8139ba1ea4bf010bc099bdd3957
Cloner: appease Ruff vs PLW2901 (redefined-loop-name)

In this instance redefining the variable does make sense, since we are
looping over object that themselves might not be the final object we
want to interact with, as in the case of LUKS volumes.

If we wanted to fix this any way with:

    for obj in unmount_candidates:
        volume = obj
        # Use `volume` instead of `obj` everywhere below
        [...]

we don't actually fix anything. So let's just silence Ruff in this
case.
config/chroot_local-includes/usr/lib/python3/dist-packages/tails_installer/creator.py