This is an archive of the discontinued LLVM Phabricator instance.

move shebangs from python2 to python3
Needs ReviewPublic

Authored by LocutusOfBorg on Apr 13 2020, 8:50 AM.

Details

Summary

Since python2 is dead, moving to python3 is the way to move forward, since it fixes e.g. autopkgtests on Debian, and Ubuntu, where python2 is not installed anymore on the system.
This is semi automated patch, made with some sed commands.

Diff Detail

Event Timeline

LocutusOfBorg created this revision.Apr 13 2020, 8:50 AM
lebedev.ri resigned from this revision.Jan 12 2023, 5:18 PM

This review seems to be stuck/dead, consider abandoning if no longer relevant.

Herald added a reviewer: njames93. · View Herald Transcript
Herald added projects: Restricted Project, Restricted Project, Restricted Project, Restricted Project. · View Herald Transcript

This is still relevant, python2 is dead.

@LocutusOfBorg - a grep of llvm-project *.py files is not finding many matches for python2 - I'm assuming this was handled (e.g. update_cc_test_checks.py was updated in D129590).

There might still be a few missed cases (or references to python2 in comments)?

Updated changes!