Skip to content

Commit 0f44c0c

Browse files
committed
update-checkout: Explicitly use python3
This changes the shebangs for the update_checkout executable files to specifically call Python 3. The code is already compatible and functional with python3, so this removes any implied backward compatibility, and removes any ambiguity based on the user's current environment, especially since some systems, like macOS, still link 'python' to Python 2. This also removes the now unnecessary 'from __future__' imports.
1 parent 245745b commit 0f44c0c

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

utils/update-checkout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import sys
44

utils/update_checkout/run_tests.py

100644100755
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# This source file is part of the Swift.org open source project
44
#
@@ -13,9 +13,6 @@
1313
Small script used to easily run the update_checkout module unit tests.
1414
"""
1515

16-
17-
from __future__ import absolute_import, unicode_literals
18-
1916
import os
2017
import shutil
2118
import sys

utils/update_checkout/update_checkout/update_checkout.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
# See https://swift.org/LICENSE.txt for license information
99
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010

11-
from __future__ import print_function
12-
1311
import argparse
1412
import json
1513
import os

0 commit comments

Comments
 (0)