summaryrefslogtreecommitdiff
path: root/examples/example.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-07-14 14:54:23 -0600
committerkotfu <kotfu@kotfu.net>2019-07-14 14:54:23 -0600
commit3307760a3361d33ed16943588ad4a0f1df4b59d3 (patch)
tree473f3a7213c1a2f1f03fd94f99cfc92e7eb4a3c7 /examples/example.py
parent83f62cd6767810382e5a70ec6d0974ef661fc26b (diff)
downloadcmd2-git-3307760a3361d33ed16943588ad4a0f1df4b59d3.tar.gz
Fix lint error for unused variable
Diffstat (limited to 'examples/example.py')
-rwxr-xr-xexamples/example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.py b/examples/example.py
index a62c258b..b8f8202c 100755
--- a/examples/example.py
+++ b/examples/example.py
@@ -66,7 +66,7 @@ class CmdLineApp(cmd2.Cmd):
def do_mumble(self, args):
"""Mumbles what you tell me to."""
repetitions = args.repeat or 1
- for i in range(min(repetitions, self.maxrepeats)):
+ for _ in range(min(repetitions, self.maxrepeats)):
output = []
if random.random() < .33:
output.append(random.choice(self.MUMBLE_FIRST))