Skip to content

Commit 8c2e5c1

Browse files
Takuto Ikutacopybara-github
Takuto Ikuta
authored andcommitted
build: remove 'from __future__ import print_function'
I think we don't need this line anymore. Bug: 1406153 Change-Id: Id161854458d131645bb4b54e9ed69b1c171319ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4078643 Commit-Queue: Takuto Ikuta <[email protected]> Reviewed-by: Ben Pastene <[email protected]> Cr-Commit-Position: refs/heads/main@{#1092171} NOKEYCHECK=True GitOrigin-RevId: df413c2e2be0cc7d011e25c05525f87d97b5e6bf
1 parent 86d60fd commit 8c2e5c1

Some content is hidden

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

67 files changed

+0
-67
lines changed

android/adb_command_line.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Utility for reading / writing command-line flag files on device(s)."""
77

8-
from __future__ import print_function
98

109
import argparse
1110
import logging

android/adb_logcat_monitor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
early enough to not miss anything.
1717
"""
1818

19-
from __future__ import print_function
2019

2120
import logging
2221
import os

android/apk_operations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Using colorama.Fore/Back/Style members
77
# pylint: disable=no-member
88

9-
from __future__ import print_function
109

1110
import argparse
1211
import collections

android/asan_symbolize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Use of this source code is governed by a BSD-style license that can be
55
# found in the LICENSE file.
66

7-
from __future__ import print_function
87

98
import argparse
109
import collections

android/diff_resource_sizes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Runs resource_sizes.py on two apks and outputs the diff."""
77

8-
from __future__ import print_function
98

109
import argparse
1110
import json

android/dump_apk_resource_strings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
"""A script to parse and dump localized strings in resource.arsc files."""
88

9-
from __future__ import print_function
109

1110
import argparse
1211
import collections

android/generate_jacoco_report.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
"""Aggregates Jacoco coverage files to produce output."""
88

9-
from __future__ import print_function
109

1110
import argparse
1211
import fnmatch

android/gradle/gn_to_cmake.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
The first is recommended, as it will auto-update.
1717
"""
1818

19-
from __future__ import print_function
2019

2120
import functools
2221
import json

android/gyp/assert_static_initializers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Checks the number of static initializers in an APK's library."""
77

8-
from __future__ import print_function
98

109
import argparse
1110
import os

android/gyp/copy_ex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
"""Copies files to a directory."""
88

9-
from __future__ import print_function
109

1110
import filecmp
1211
import itertools

android/gyp/find.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"""Finds files in directories.
88
"""
99

10-
from __future__ import print_function
1110

1211
import fnmatch
1312
import optparse

android/gyp/jacoco_instr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
1414
"""
1515

16-
from __future__ import print_function
1716

1817
import argparse
1918
import json

android/gyp/lint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# found in the LICENSE file.
66
"""Runs Android's lint tool."""
77

8-
from __future__ import print_function
98

109
import argparse
1110
import logging

android/gyp/util/md5_check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
from __future__ import print_function
65

76
import difflib
87
import hashlib

android/lighttpd_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
lighttpd_server PATH_TO_DOC_ROOT
1111
"""
1212

13-
from __future__ import print_function
1413

1514
import codecs
1615
import contextlib

android/method_count.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
from __future__ import print_function
76

87
import argparse
98
import os

android/pylib/results/presentation/standard_gtest_merge.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Use of this source code is governed by a BSD-style license that can be
55
# found in the LICENSE file.
66

7-
from __future__ import print_function
87

98
import argparse
109
import json

android/pylib/results/report_results.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
"""Module containing utility functions for reporting results."""
66

7-
from __future__ import print_function
87

98
import logging
109
import os

android/pylib/symbols/mock_addr2line/mock_addr2line

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Outputs mock symbol information, with each symbol being a function of the
99
original address (so it is easy to double-check consistency in unittests).
1010
"""
1111

12-
from __future__ import print_function
1312

1413
import optparse
1514
import os

android/resource_sizes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
More information at //docs/speed/binary_size/metrics.md.
99
"""
1010

11-
from __future__ import print_function
1211

1312
import argparse
1413
import collections

android/stacktrace/stackwalker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Use of this source code is governed by a BSD-style license that can be
55
# found in the LICENSE file.
66

7-
from __future__ import print_function
87

98
import argparse
109
import os

apple/tweak_info_plist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# by the time the app target is done, the info.plist is correct.
2121
#
2222

23-
from __future__ import print_function
2423

2524
import optparse
2625
import os

check_return_value.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""This program wraps an arbitrary command and prints "1" if the command ran
77
successfully."""
88

9-
from __future__ import print_function
109

1110
import os
1211
import subprocess

compute_build_timestamp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
# the symbol server, so rarely changing timestamps can cause conflicts there
2828
# as well. We only upload symbols for official builds to the symbol server.
2929

30-
from __future__ import print_function
3130

3231
import argparse
3332
import calendar

config/get_host_byteorder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Get Byteorder of host architecture"""
77

8-
from __future__ import print_function
98

109
import sys
1110

config/ios/codesign.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
from __future__ import print_function
65

76
import argparse
87
import codecs

config/ios/compile_ib_files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
from __future__ import print_function
65

76
import argparse
87
import logging

config/ios/find_signing_identity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
from __future__ import print_function
65

76
import argparse
87
import os

config/ios/write_framework_hmap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
from __future__ import print_function
65

76
import os
87
import struct

config/linux/pkg-config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
from __future__ import print_function
76

87
import json
98
import os

copy_test_data_ios.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Copies test data files or directories into a given output directory."""
77

8-
from __future__ import print_function
98

109
import optparse
1110
import os

detect_host_arch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Outputs host CPU architecture in format recognized by gyp."""
77

8-
from __future__ import print_function
98

109
import platform
1110
import re

download_nacl_toolchains.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Shim to run nacl toolchain download script only if there is a nacl dir."""
77

8-
from __future__ import print_function
98

109
import os
1110
import shutil

extract_from_cab.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Extracts a single file from a CAB archive."""
77

8-
from __future__ import print_function
98

109
import os
1110
import shutil

find_depot_tools.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
directory location.
1212
"""
1313

14-
from __future__ import print_function
1514

1615
import os
1716
import sys

fix_gn_headers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
Manual cleaning up is likely required afterwards.
1111
"""
1212

13-
from __future__ import print_function
1413

1514
import argparse
1615
import os

fuchsia/ffx_session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""
77

88
# Enable use of the print() built-in function.
9-
from __future__ import print_function
109

1110
import argparse
1211
import contextlib

fuchsia/run_test_package.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""Contains a helper function for deploying and executing a packaged
55
executable on a Target."""
66

7-
from __future__ import print_function
87

98
import common
109
import hashlib

get_landmines.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
(or a list of 'landmines').
99
"""
1010

11-
from __future__ import print_function
1211

1312
import sys
1413

gn_run_binary.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
python gn_run_binary.py <binary_name> [args ...]
99
"""
1010

11-
from __future__ import print_function
1211

1312
import os
1413
import subprocess

linux/dump_app_syms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# Helper script to run dump_syms on Chrome Linux executables and strip
66
# them if needed.
77

8-
from __future__ import print_function
98

109
import os
1110
import subprocess

linux/install-chromeos-fonts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# This script can be run manually (as root), but is also run as part
88
# install-build-deps.sh.
99

10-
from __future__ import print_function
1110

1211
import os
1312
import shutil

linux/rewrite_dirs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"""Rewrites paths in -I, -L and other option to be relative to a sysroot."""
77

8-
from __future__ import print_function
98

109
import sys
1110
import os

linux/sysroot_scripts/build_and_upload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
UploadSysroot for each supported arch of each sysroot creator.
88
"""
99

10-
from __future__ import print_function
1110

1211
import glob
1312
import hashlib

linux/sysroot_scripts/install-sysroot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# to download and the location to extract it to. The extracted sysroot could for
2323
# example be in build/linux/debian_bullseye_amd64-sysroot/.
2424

25-
from __future__ import print_function
2625

2726
import hashlib
2827
import json

locale_tool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
trying to fix it too, but at least the file will not be modified.
2929
"""
3030

31-
from __future__ import print_function
3231

3332
import argparse
3433
import json

mac/find_sdk.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
10.14
2222
"""
2323

24-
from __future__ import print_function
2524

2625
import os
2726
import plistlib

mac/should_use_hermetic_xcode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
python should_use_hermetic_xcode.py <target_os>
1616
"""
1717

18-
from __future__ import print_function
1918

2019
import argparse
2120
import os

protoc_java.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
4. Creates a new stamp file.
1616
"""
1717

18-
from __future__ import print_function
1918

2019
import argparse
2120
import os

redirect_stdout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
from __future__ import print_function
65

76
import os
87
import subprocess

0 commit comments

Comments
 (0)