mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Replace deprecated in python3: iteritems with items and basestr with str (#3119)
This commit is contained in:
committed by
Ivan Kravets
parent
239befa4ee
commit
e8692334f6
@ -69,8 +69,8 @@ def exec_command(*args, **kwargs):
|
|||||||
result['out'], result['err'] = p.communicate()
|
result['out'], result['err'] = p.communicate()
|
||||||
result['returncode'] = p.returncode
|
result['returncode'] = p.returncode
|
||||||
|
|
||||||
for k, v in result.iteritems():
|
for k, v in result.items():
|
||||||
if v and isinstance(v, basestring):
|
if v and isinstance(v, str):
|
||||||
result[k].strip()
|
result[k].strip()
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Reference in New Issue
Block a user