summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2020-01-28 20:55:44 +0100
committerDamien George <damien.p.george@gmail.com>2020-02-01 00:05:29 +1100
commit1cadb12d1c4baefd65a7e1030356b63cc0f6c3a6 (patch)
tree6189e2828eda0d28068d4dc8349184b0ebdba12f /tools/pyboard.py
parent83afd48ad93e162eec65d34c2dfe266c995fbafd (diff)
downloadmicropython-1cadb12d1c4baefd65a7e1030356b63cc0f6c3a6.tar.gz
micropython-1cadb12d1c4baefd65a7e1030356b63cc0f6c3a6.zip
tools/pyboard.py: Use slice del instead of list.clear() for Py2 compat.
Python 2 does not have list.clear().
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index f1ccc59b9e..51806a3299 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -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: