Fix this flake8 warning:
gdb/testsuite/gdb.python/py-commands-breakpoint.py:37:13: E741 ambiguous variable name 'l'
This one is a bit subjective, but renaming the variable is easy enough
and the simplest way to get rid of the warning.
Change-Id: I9b1ffd898e27a9d0e172f29715aff3ff3cc785b9
Approved-By: Tom Tromey <tom@tromey.com>
def __setattr__(self, name, value):
if name == "commands":
- l = ["python PyCommandsBreakpoint.run_py_commands(%d)" % self.number]
+ cmds = ["python PyCommandsBreakpoint.run_py_commands(%d)" % self.number]
if value != "":
- l.append(value)
- value = "\n".join(l)
+ cmds.append(value)
+ value = "\n".join(cmds)
super().__setattr__(name, value)