Skip to content

Commit

Permalink
tools/pyboard.py: Use slice del instead of list.clear() for Py2 compat.
Browse files Browse the repository at this point in the history
Python 2 does not have list.clear().
  • Loading branch information
mbuesch authored and dpgeorge committed Jan 31, 2020
1 parent 83afd48 commit 1cadb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pyboard.py
Expand Up @@ -567,7 +567,7 @@ def execbuffer(buf):
# 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:
Expand Down

0 comments on commit 1cadb12

Please sign in to comment.