From e8692334f6b628be3c4a3a720f4c74fc2e6d8387 Mon Sep 17 00:00:00 2001 From: Matt McCartney Date: Tue, 15 Oct 2019 12:00:48 -0700 Subject: [PATCH] Replace deprecated in python3: iteritems with items and basestr with str (#3119) --- scripts/get-platformio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get-platformio.py b/scripts/get-platformio.py index ec201d62..988f6054 100644 --- a/scripts/get-platformio.py +++ b/scripts/get-platformio.py @@ -69,8 +69,8 @@ def exec_command(*args, **kwargs): result['out'], result['err'] = p.communicate() result['returncode'] = p.returncode - for k, v in result.iteritems(): - if v and isinstance(v, basestring): + for k, v in result.items(): + if v and isinstance(v, str): result[k].strip() return result