Skip to content

Commit 516913d

Browse files
[gardening] Use the idiomatic convention of naming unused variables "_"
1 parent 8917eb0 commit 516913d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

utils/sil-opt-verify-all-modules.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def main():
150150
# Find Xcode.
151151
swift_path = subprocess.check_output([ 'xcrun', '--find', 'swift' ])
152152
xcode_path = swift_path
153-
for i in range(0, 7):
153+
for _ in range(0, 7):
154154
xcode_path = os.path.dirname(xcode_path)
155155

156156
toolchains_dir = os.path.join(

utils/swift-bench.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class SwiftBenchHarness:
6262

6363
def log(self, str, level):
6464
if self.verboseLevel >= level:
65-
for i in range(1,level):
65+
for _ in range(1, level):
6666
sys.stdout.write(' ')
6767
print(str)
6868

@@ -300,7 +300,7 @@ def runBench(self, name):
300300
return
301301
samples = []
302302
self.log("Running bench: %s, numsamples: %d" % (name, numSamples), 2)
303-
for i in range(0,numSamples):
303+
for _ in range(0, numSamples):
304304
try:
305305
r = self.runCommand([self.tests[name].binary, str(iterScale),
306306
self.tests[name].name])

0 commit comments

Comments
 (0)