[utils] Fix incompatibility of bisect[-skip-count] with Python 3
authorMikhail Maltsev <mikhail.maltsev@arm.com>
Fri, 4 Oct 2019 16:44:18 +0000 (16:44 +0000)
committerMikhail Maltsev <mikhail.maltsev@arm.com>
Fri, 4 Oct 2019 16:44:18 +0000 (16:44 +0000)
commitcfe8bedca034182fa5a6d4970c983c4d8ee3db5e
treee4ebcd39cfd07a69a88f25b8a6331baa68c3fc50
parent856383555b3a43c97a3702083698181b6671bcce
[utils] Fix incompatibility of bisect[-skip-count] with Python 3

Summary:
This change replaces the print statements with print function calls
and also replaces the '/' operator (which is integer division in Py2,
but becomes floating point division in Py3) with the '//' operator
which has the same semantics in Py2 and Py3.

Reviewers: greened, michaelplatings, gottesmm

Reviewed By: greened

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68138

llvm-svn: 373759
llvm/utils/bisect
llvm/utils/bisect-skip-count