diff options
author | Michael Buesch <m@bues.ch> | 2020-01-28 20:55:44 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-01 00:05:29 +1100 |
commit | 1cadb12d1c4baefd65a7e1030356b63cc0f6c3a6 (patch) | |
tree | 6189e2828eda0d28068d4dc8349184b0ebdba12f | |
parent | 83afd48ad93e162eec65d34c2dfe266c995fbafd (diff) | |
download | micropython-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().
-rwxr-xr-x | tools/pyboard.py | 2 |
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: |