Skip to content

Commit 3dfc408

Browse files
authored
[NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now, where the 3 specific things are all included [since Python 3.0](https://docs.python.org/3/library/__future__.html): * absolute_import * print_function * unicode_literals * division These import statements are no-ops and are no longer necessary.
1 parent b5ed5f8 commit 3dfc408

File tree

171 files changed

+104
-347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+104
-347
lines changed

benchmark/scripts/Benchmark_DTrace.in

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
# ===--- Benchmark_DTrace.in ---------------------------------------------===//
44
#

benchmark/scripts/Benchmark_Driver

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
# -*- coding: utf-8 -*-
33

44
# ===--- Benchmark_Driver ------------------------------------------------===//

benchmark/scripts/Benchmark_GuardMalloc.in

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
# ===--- Benchmark_GuardMalloc.in ----------------------------------------===//
44
#

benchmark/scripts/Benchmark_QuickCheck.in

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
# ===--- Benchmark_QuickCheck.in -----------------------------------------===//
44
#

benchmark/scripts/Benchmark_RuntimeLeaksRunner.in

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
# ===--- Benchmark_RuntimeLeaksRunner.in ---------------------------------===//
44
#

benchmark/scripts/build_linux.py

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 argparse
44
import os

benchmark/scripts/build_script_helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/env python
2-
3-
from __future__ import print_function
1+
#!/usr/bin/env python3
42

53
import argparse
64
import os

benchmark/scripts/compare_perf_tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33

44
# ===--- compare_perf_tests.py -------------------------------------------===//
@@ -27,8 +27,6 @@ class `ReportFormatter` creates the test comparison report in specified format.
2727
2828
"""
2929

30-
from __future__ import print_function
31-
3230
import argparse
3331
import functools
3432
import re

benchmark/scripts/create_benchmark.py

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 argparse
44
import os

benchmark/scripts/generate_harness/generate_harness.py

Lines changed: 1 addition & 3 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
# ===--- generate_harness.py ---------------------------------------------===//
44
#
@@ -14,8 +14,6 @@
1414

1515
# Generate boilerplate, CMakeLists.txt and utils/main.swift from templates.
1616

17-
from __future__ import print_function
18-
1917
import argparse
2018
import os
2119
import subprocess

0 commit comments

Comments
 (0)