[PATCH] D95393: [lit] Update lit.py shebang for Python3

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 13:51:15 PST 2021


yln created this revision.
yln added reviewers: thakis, rnk, jdenny, serge-sans-paille.
Herald added a subscriber: delcypher.
yln requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Update shebang to always use Python3 when executing `lit.py` directly.

A previous change of mine [1] revealed that we still use Python2 on some
bot configurations that invoke `llvm/utils/lit/lit.py` as a script
directly (instead of `python3 path/to/lit.py`).

[1] https://reviews.llvm.org/D94734


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95393

Files:
  llvm/utils/lit/lit.py


Index: llvm/utils/lit/lit.py
===================================================================
--- llvm/utils/lit/lit.py
+++ llvm/utils/lit/lit.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from lit.main import main
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95393.319111.patch
Type: text/x-patch
Size: 243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210125/0b4b95b1/attachment.bin>


More information about the llvm-commits mailing list