Skip to content

Commit d8ef258

Browse files
committed
Clean up unused variables
1 parent 16d8e96 commit d8ef258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_transcript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def do_speak(self, opts, arg):
5353
if opts.shout:
5454
arg = arg.upper()
5555
repetitions = opts.repeat or 1
56-
for i in range(min(repetitions, self.maxrepeats)):
56+
for _ in range(min(repetitions, self.maxrepeats)):
5757
self.poutput(arg)
5858
# recommend using the poutput function instead of
5959
# self.stdout.write or "print", because Cmd allows the user
@@ -69,7 +69,7 @@ def do_mumble(self, opts, arg):
6969
"""Mumbles what you tell me to."""
7070
repetitions = opts.repeat or 1
7171
#arg = arg.split()
72-
for i in range(min(repetitions, self.maxrepeats)):
72+
for _ in range(min(repetitions, self.maxrepeats)):
7373
output = []
7474
if random.random() < .33:
7575
output.append(random.choice(self.MUMBLE_FIRST))

0 commit comments

Comments
 (0)