diff options
| author | tangyuxin <[email protected]> | 2021-04-05 11:59:54 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2021-04-05 12:11:14 +0800 |
| commit | 510955ba42cb6c040598d885c640ba50bbb885e4 (patch) | |
| tree | cbc5711b24fee59b170ac7e557ae9bd1277f7a16 /tools/auto-ci.py | |
| parent | 1e4a463f363dcde37f14d0ae2772360f4ff87a5e (diff) | |
[tools] Python 3 compatibility support
Diffstat (limited to 'tools/auto-ci.py')
| -rw-r--r-- | tools/auto-ci.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/auto-ci.py b/tools/auto-ci.py index 67834544d8..bbb384cec2 100644 --- a/tools/auto-ci.py +++ b/tools/auto-ci.py @@ -52,7 +52,7 @@ fail = False BSP_ROOT = '../bsp' -for bsp,cpu in bsp_to_cpu.iteritems(): +for bsp,cpu in bsp_to_cpu.items(): project_dir = os.path.join(BSP_ROOT, bsp) if os.getenv('RTT_CPU') == cpu and os.path.isfile(os.path.join(project_dir, 'SConstruct')): if os.system('scons --directory=' + project_dir) != 0: @@ -63,10 +63,10 @@ for bsp,cpu in bsp_to_cpu.iteritems(): else: results['ignore'].append(bsp) -for result,bsp_list in results.iteritems(): - print "## {0}: {1}\n".format(result, len(bsp_list)) +for result,bsp_list in results.items(): + print("## {0}: {1}\n".format(result, len(bsp_list))) for bsp in bsp_list: - print "* " + bsp + print("* " + bsp) if fail: sys.exit(1) |
