tools/pyboard.py: Use slice del instead of list.clear() for Py2 compat.
Python 2 does not have list.clear().
This commit is contained in:
committed by
Damien George
parent
83afd48ad9
commit
1cadb12d1c
@@ -567,7 +567,7 @@ def main():
|
|||||||
# do filesystem commands, if given
|
# do filesystem commands, if given
|
||||||
if args.filesystem:
|
if args.filesystem:
|
||||||
filesystem_command(pyb, args.files)
|
filesystem_command(pyb, args.files)
|
||||||
args.files.clear()
|
del args.files[:]
|
||||||
|
|
||||||
# run the command, if given
|
# run the command, if given
|
||||||
if args.command is not None:
|
if args.command is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user