From 712941828956598ebf9738bcdd27b6e4bafa9332 Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Wed, 22 Jan 2025 06:28:38 -0800 Subject: [PATCH] Use Python 3 in `scripts/lint.py` (#5617) * [x] I have followed the instructions in the PR template ## Changes - Use Python 3 in `scripts/lint.py`. ## Why Some modern OS and distributions do not provide Python 2 by default. This includes recent macOS versions. I see that `scripts/generate_changelog.py` already uses Python 3, so I don't think this change should be controversial. Without this change, I am unable to run `./scripts/check.sh` on macOS 15.2 without installing Python 2 or adding alias for `python` executable. --- scripts/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint.py b/scripts/lint.py index 221d980d..4939d735 100755 --- a/scripts/lint.py +++ b/scripts/lint.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Runs custom linting on Rust code. """