summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-08-29 13:03:13 -0400
committerTom Rini <trini@konsulko.com>2019-09-17 15:10:43 -0400
commit925068e70084a524c7c9abecab6da7ab0894bc10 (patch)
treea91cf2f8d3114ae8470a5fa1f3cad9f9570b9dc9
parent0147a17e03794cb959d6098d6b3116609c8d4b70 (diff)
downloadu-boot-WIP/python2-removal.tar.gz
genboardscfg.py: Convert to Python 3WIP/python2-removal
Convert this tool to requiring Python 3. The bulk of this is done with the 2to3 tool and finally we need to use the '//' operator to have our division result return an int rather than a float. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tom Rini <trini@konsulko.com>
-rwxr-xr-xtools/genboardscfg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py
index 467183ab19..8db5483e29 100755
--- a/tools/genboardscfg.py
+++ b/tools/genboardscfg.py
@@ -242,8 +242,8 @@ def scan_defconfigs(jobs=1):
processes = []
queues = []
for i in range(jobs):
- defconfigs = all_defconfigs[total_boards * i / jobs :
- total_boards * (i + 1) / jobs]
+ defconfigs = all_defconfigs[total_boards * i // jobs :
+ total_boards * (i + 1) // jobs]
q = multiprocessing.Queue(maxsize=-1)
p = multiprocessing.Process(target=scan_defconfigs_for_multiprocess,
args=(q, defconfigs))