Skip to content

Commit 2f168c5

Browse files
committed
Clean up some unused variables
1 parent f1ad7b3 commit 2f168c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/lsst/sconsUtils/builders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ def makeRecordFile(target, source, env):
746746
# Do not attempt to write hashes and file sizes since these can
747747
# change if the package is not really installed into an EUPS tree.
748748
all_files = set()
749-
for root, dirs, files in os.walk(pythonDir):
749+
for root, _, files in os.walk(pythonDir):
750750
root = root.removeprefix(pythonDir)
751751
root = root.removeprefix("/")
752752
all_files.update({os.path.join(root, f) for f in files})
@@ -833,7 +833,7 @@ def makePythonScript(target, source, env):
833833
os.chmod(cmdfile, newmode)
834834

835835
results = []
836-
for cmd, code in scripts.items():
836+
for cmd in scripts:
837837
filename = f"bin/{cmd}"
838838

839839
# Do not do anything if there is an equivalent target in bin.src

python/lsst/sconsUtils/tools/cuda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
# the extra .linkinfo files when calling scons -c
2020
def CUDANVCCStaticObjectEmitter(target, source, env):
2121
tgt, src = SCons.Defaults.StaticObjectEmitter(target, source, env)
22-
for file in src:
22+
for _ in src:
2323
lifile = os.path.splitext(src[0].rstr())[0] + ".linkinfo" # noqa F841
2424
# tgt.append(lifile)
2525
return tgt, src
2626

2727

2828
def CUDANVCCSharedObjectEmitter(target, source, env):
2929
tgt, src = SCons.Defaults.SharedObjectEmitter(target, source, env)
30-
for file in src:
30+
for _ in src:
3131
lifile = os.path.splitext(src[0].rstr())[0] + ".linkinfo" # noqa F841
3232
# tgt.append(lifile)
3333
return tgt, src

0 commit comments

Comments
 (0)