Remove "from __future__" Python imports.
They are all no longer needed in Python 3.
Bug: pdfium:1674
Change-Id: I2c7f62431d0e2d55b3646494e1209dbfafbd8487
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/100290
Reviewed-by: K. Moon <kmoon@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/tools/api_check.py b/testing/tools/api_check.py
index 8a9f3dd..bd2d2e4 100755
--- a/testing/tools/api_check.py
+++ b/testing/tools/api_check.py
@@ -12,8 +12,6 @@
"""
-from __future__ import print_function
-
import os
import re
import sys
diff --git a/testing/tools/common.py b/testing/tools/common.py
index d83b945..b0a3662 100755
--- a/testing/tools/common.py
+++ b/testing/tools/common.py
@@ -3,8 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from __future__ import print_function
-
import datetime
import glob
import os
diff --git a/testing/tools/coverage/coverage_report.py b/testing/tools/coverage/coverage_report.py
index c07a082..15188bf 100755
--- a/testing/tools/coverage/coverage_report.py
+++ b/testing/tools/coverage/coverage_report.py
@@ -8,8 +8,6 @@
Prefers that 'is_component_build = false' is set in args.gn.
"""
-from __future__ import print_function
-
import argparse
from collections import namedtuple
import fnmatch
diff --git a/testing/tools/fixup_pdf_template.py b/testing/tools/fixup_pdf_template.py
index ccdfbb4..b1c42e4 100755
--- a/testing/tools/fixup_pdf_template.py
+++ b/testing/tools/fixup_pdf_template.py
@@ -19,8 +19,6 @@
{{streamlen}} - expands to `/Length n`.
"""
-from __future__ import print_function
-
import io
import optparse
import os
diff --git a/testing/tools/pngdiffer.py b/testing/tools/pngdiffer.py
index 570047b..92178a3 100755
--- a/testing/tools/pngdiffer.py
+++ b/testing/tools/pngdiffer.py
@@ -3,8 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from __future__ import print_function
-
from dataclasses import dataclass
import distutils.spawn
import itertools
diff --git a/testing/tools/safetynet_compare.py b/testing/tools/safetynet_compare.py
index 3baecea..b7d92ae 100755
--- a/testing/tools/safetynet_compare.py
+++ b/testing/tools/safetynet_compare.py
@@ -4,8 +4,6 @@
# found in the LICENSE file.
"""Compares the performance of two versions of the pdfium code."""
-from __future__ import print_function
-
import argparse
import functools
import glob
diff --git a/testing/tools/safetynet_conclusions.py b/testing/tools/safetynet_conclusions.py
index fb563b5..357d091 100644
--- a/testing/tools/safetynet_conclusions.py
+++ b/testing/tools/safetynet_conclusions.py
@@ -3,8 +3,6 @@
# found in the LICENSE file.
"""Classes that draw conclusions out of a comparison and represent them."""
-from __future__ import print_function
-
from collections import Counter
FORMAT_RED = '\033[01;31m{0}\033[00m'
diff --git a/testing/tools/safetynet_image.py b/testing/tools/safetynet_image.py
index 9232098..f5f9b08 100644
--- a/testing/tools/safetynet_image.py
+++ b/testing/tools/safetynet_image.py
@@ -4,8 +4,6 @@
"""Compares pairs of page images and generates an HTML to look at differences.
"""
-from __future__ import print_function
-
import functools
import glob
import multiprocessing
diff --git a/testing/tools/safetynet_measure.py b/testing/tools/safetynet_measure.py
index ee5d13d..f8196f7 100755
--- a/testing/tools/safetynet_measure.py
+++ b/testing/tools/safetynet_measure.py
@@ -7,8 +7,6 @@
The output is a number that is a metric which depends on the profiler specified.
"""
-from __future__ import print_function
-
import argparse
import os
import re
diff --git a/testing/tools/skia_gold/skia_gold.py b/testing/tools/skia_gold/skia_gold.py
index 1f401cf..4a3519f 100644
--- a/testing/tools/skia_gold/skia_gold.py
+++ b/testing/tools/skia_gold/skia_gold.py
@@ -1,7 +1,6 @@
# Copyright 2021 The PDFium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from __future__ import print_function
import os
import logging
diff --git a/testing/tools/suppressor.py b/testing/tools/suppressor.py
index 82ccdf7..c6aed64 100755
--- a/testing/tools/suppressor.py
+++ b/testing/tools/suppressor.py
@@ -3,8 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from __future__ import print_function
-
import os
import common
diff --git a/testing/tools/test_runner.py b/testing/tools/test_runner.py
index ec1d06d..9bc3681 100644
--- a/testing/tools/test_runner.py
+++ b/testing/tools/test_runner.py
@@ -3,9 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from __future__ import print_function
-from __future__ import division
-
import argparse
from dataclasses import dataclass, field
import multiprocessing
diff --git a/testing/tools/text_diff.py b/testing/tools/text_diff.py
index 51ee700..5f43972 100755
--- a/testing/tools/text_diff.py
+++ b/testing/tools/text_diff.py
@@ -3,8 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from __future__ import print_function
-
import difflib
import sys