From 4561c28e5d45fca2eac70be79589391f89f39dc5 Mon Sep 17 00:00:00 2001 From: Lisa Roach Date: Thu, 8 Sep 2022 14:08:05 -0700 Subject: [PATCH] Converts two buck_client scripts to Python 3. Summary: This code is showing up in sandcastle logs as still running Python 2. Switching the shebangs to Python 3, hopefully CI will highlight if there is anything not compatible (nothing jumps out at me). Reviewed By: lebentle fbshipit-source-id: e063b0f807cd320965bb40d36d21bcb0dd64680d --- .../fixes/source_only_abi/autofix_source_only_abi_warnings.py | 2 +- .../buck/android/testdata/android_project/scripts/postfilter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/fixes/source_only_abi/autofix_source_only_abi_warnings.py b/programs/fixes/source_only_abi/autofix_source_only_abi_warnings.py index 1074cdeead0..e5721ae5a53 100755 --- a/programs/fixes/source_only_abi/autofix_source_only_abi_warnings.py +++ b/programs/fixes/source_only_abi/autofix_source_only_abi_warnings.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/test/com/facebook/buck/android/testdata/android_project/scripts/postfilter.py b/test/com/facebook/buck/android/testdata/android_project/scripts/postfilter.py index 6923e281d31..a777560aaf9 100644 --- a/test/com/facebook/buck/android/testdata/android_project/scripts/postfilter.py +++ b/test/com/facebook/buck/android/testdata/android_project/scripts/postfilter.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved. from __future__ import absolute_import, division, print_function, unicode_literals