Skip to content

Commit 4f23d61

Browse files
committed
Import print_function wherever we use print() in python code
1 parent 243baa1 commit 4f23d61

File tree

15 files changed

+26
-0
lines changed

15 files changed

+26
-0
lines changed

Diff for: benchmark/scripts/compare_perf_tests.py

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#
1414
# ===---------------------------------------------------------------------===//
1515

16+
from __future__ import print_function
17+
1618
import argparse
1719
import csv
1820
import sys

Diff for: benchmark/scripts/generate_harness/generate_harness.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

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

17+
from __future__ import print_function
18+
1719
import glob
1820
import os
1921
import re

Diff for: benchmark/scripts/perf_test_driver/perf_test_driver.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#
1313
# ===---------------------------------------------------------------------===//
1414

15+
from __future__ import print_function
16+
1517
import functools
1618
import multiprocessing
1719
import os

Diff for: benchmark/utils/convertToJSON.py

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
# ]
5858
# }
5959

60+
from __future__ import print_function
61+
6062
import json
6163
import re
6264
import sys

Diff for: utils/backtrace-check

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
# 11 libswiftCore.dylib 0x000000000dce84d0l _fatalErrorMessage(StaticString,
1919
# StaticString, StaticString, UInt, flags : UInt32) -> () + 444
2020

21+
from __future__ import print_function
22+
2123
import argparse
2224
import re
2325
import sys

Diff for: utils/bug_reducer/bug_reducer/func_bug_reducer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12

23
import md5
34
import os

Diff for: utils/bug_reducer/bug_reducer/list_reducer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12

23
import random
34

Diff for: utils/bug_reducer/bug_reducer/opt_bug_reducer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12

23
import json
34
import md5

Diff for: utils/bug_reducer/bug_reducer/random_bug_finder.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import print_function
2+
13
import json
24
import random
35
import subprocess

Diff for: utils/bug_reducer/bug_reducer/swift_tools.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12

23
import os
34
import subprocess

Diff for: utils/coverage/coverage-touch-tests

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# See https://swift.org/LICENSE.txt for license information
1010
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111

12+
from __future__ import print_function
13+
1214
import argparse
1315
import logging
1416
import multiprocessing

Diff for: utils/resolve-crashes.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# where some compiler crashers have been fixed, and move them into the
55
# "fixed" testsuite, removing the "--crash" in the process.
66

7+
from __future__ import print_function
8+
79
import os
810
import re
911
import sys

Diff for: utils/rth

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# See https://swift.org/LICENSE.txt for license information
1010
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111

12+
from __future__ import print_function
13+
1214
import argparse
1315
import os
1416
import pipes

Diff for: utils/scale-test

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# values.
1313
#
1414

15+
from __future__ import print_function
16+
1517
import argparse
1618
import json
1719
import os

Diff for: utils/swift_build_support/swift_build_support/diagnostics.py

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#
1111
# ----------------------------------------------------------------------------
1212

13+
from __future__ import print_function
14+
1315
import sys
1416

1517

0 commit comments

Comments
 (0)