tools/pyboard.py: Use slice del instead of list.clear() for Py2 compat.

Python 2 does not have list.clear().
pull/5598/head
Michael Buesch 2020-01-28 20:55:44 +01:00 zatwierdzone przez Damien George
rodzic 83afd48ad9
commit 1cadb12d1c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -567,7 +567,7 @@ def main():
# do filesystem commands, if given
if args.filesystem:
filesystem_command(pyb, args.files)
args.files.clear()
del args.files[:]
# run the command, if given
if args.command is not None: