From 1cadb12d1c4baefd65a7e1030356b63cc0f6c3a6 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Tue, 28 Jan 2020 20:55:44 +0100 Subject: [PATCH] tools/pyboard.py: Use slice del instead of list.clear() for Py2 compat. Python 2 does not have list.clear(). --- tools/pyboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pyboard.py b/tools/pyboard.py index f1ccc59b9..51806a329 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: