• Bruce Dawson's avatar
    Get bisect-builds.py working under Python 3 · 039777ef
    Bruce Dawson authored
    This change fixes bisect-builds.py so that it runs under Python 3 (while
    still supporting Python 2). The changes are:
    
    - Don't import httplib (unsupported but also unused)
    - Import urllib.request as urllib on Python 3
    - Don't use 16L syntax for 16
    - Use input instead of raw_input on Python 3
    - Convert integer division results to integer
    - Use is_alive instead of IsAlive
    - Use except Exception _as_ e instead of a comma
    
    The new code needs to use two conditionals with the rest of the fixes
    still working fine in Python 2.
    
    Bug: 941669
    Change-Id: I34cd995225233f3f97008c7e07e0537b4683c48f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2498954
    Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
    Reviewed-by: default avatarDirk Pranke <dpranke@google.com>
    Cr-Commit-Position: refs/heads/master@{#820882}
    039777ef
bisect-builds.py 50.1 KB