patman: Drop references to __future__
authorSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2020 00:08:54 +0000 (18:08 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 20:25:21 +0000 (14:25 -0600)
We don't need these now that the tools using Python 3. Drop them.

Signed-off-by: Simon Glass <sjg@chromium.org>
20 files changed:
tools/binman/binman.py
tools/binman/cbfs_util.py
tools/binman/cbfs_util_test.py
tools/binman/control.py
tools/binman/elf.py
tools/binman/entry.py
tools/binman/etype/section.py
tools/binman/ftest.py
tools/binman/image.py
tools/buildman/buildman.py
tools/dtoc/dtoc.py
tools/dtoc/test_dtoc.py
tools/dtoc/test_fdt.py
tools/patman/series.py
tools/patman/settings.py
tools/patman/terminal.py
tools/patman/test_util.py
tools/patman/tools.py
tools/patman/tout.py
tools/rmboard.py

index 9e6fd72..ec152e9 100755 (executable)
@@ -9,8 +9,6 @@
 
 """See README for more information"""
 
-from __future__ import print_function
-
 from distutils.sysconfig import get_python_lib
 import glob
 import multiprocessing
index 99d7787..34c5116 100644 (file)
@@ -15,8 +15,6 @@ Currently supported: raw and stage types with compression, padding empty areas
     with empty files, fixed-offset files
 """
 
-from __future__ import print_function
-
 from collections import OrderedDict
 import io
 import struct
index ddc2e09..4aa2494 100755 (executable)
@@ -9,8 +9,6 @@ These create and read various CBFSs and compare the results with expected
 values and with cbfstool
 """
 
-from __future__ import print_function
-
 import io
 import os
 import shutil
index 68ad5fc..82bc90d 100644 (file)
@@ -5,8 +5,6 @@
 # Creates binary images from input files controlled by a description
 #
 
-from __future__ import print_function
-
 from collections import OrderedDict
 import os
 import sys
index de1ce73..29fdac1 100644 (file)
@@ -5,8 +5,6 @@
 # Handle various things related to ELF images
 #
 
-from __future__ import print_function
-
 from collections import namedtuple, OrderedDict
 import command
 import io
index b6f1b2c..1244d36 100644 (file)
@@ -4,8 +4,6 @@
 # Base class for all entries
 #
 
-from __future__ import print_function
-
 from collections import namedtuple
 import importlib
 import os
index 89b7bf6..87b3ddc 100644 (file)
@@ -8,8 +8,6 @@ Sections are entries which can contain other entries. This allows hierarchical
 images to be created.
 """
 
-from __future__ import print_function
-
 from collections import OrderedDict
 import re
 import sys
index 872b855..67f976e 100644 (file)
@@ -6,8 +6,6 @@
 #
 #    python -m unittest func_test.TestFunctional.testHelp
 
-from __future__ import print_function
-
 import hashlib
 from optparse import OptionParser
 import os
index 2beab7f..3e96173 100644 (file)
@@ -5,8 +5,6 @@
 # Class for an image, the output of binman
 #
 
-from __future__ import print_function
-
 from collections import OrderedDict
 import fnmatch
 from operator import attrgetter
index 30a8690..0add628 100755 (executable)
@@ -6,8 +6,6 @@
 
 """See README for more information"""
 
-from __future__ import print_function
-
 import multiprocessing
 import os
 import re
index f31cba9..8e05b43 100755 (executable)
@@ -25,8 +25,6 @@ options. For more information about the use of this options and tool please
 see doc/driver-model/of-plat.rst
 """
 
-from __future__ import print_function
-
 from optparse import OptionParser
 import os
 import sys
index d733b70..9db9748 100755 (executable)
@@ -9,8 +9,6 @@ This includes unit tests for some functions and functional tests for the dtoc
 tool.
 """
 
-from __future__ import print_function
-
 import collections
 import os
 import struct
index 3316757..4f39a55 100755 (executable)
@@ -4,8 +4,6 @@
 # Written by Simon Glass <sjg@chromium.org>
 #
 
-from __future__ import print_function
-
 from optparse import OptionParser
 import glob
 import os
index 6d9d48b..3869696 100644 (file)
@@ -2,8 +2,6 @@
 # Copyright (c) 2011 The Chromium OS Authors.
 #
 
-from __future__ import print_function
-
 import itertools
 import os
 
index 5dc83a8..9ac96c4 100644 (file)
@@ -2,8 +2,6 @@
 # Copyright (c) 2011 The Chromium OS Authors.
 #
 
-from __future__ import print_function
-
 try:
     import configparser as ConfigParser
 except:
index 5c9e3ee..c709438 100644 (file)
@@ -7,8 +7,6 @@
 This module handles terminal interaction including ANSI color codes.
 """
 
-from __future__ import print_function
-
 import os
 import re
 import shutil
index 09f258c..4338dbc 100644 (file)
@@ -3,8 +3,6 @@
 # Copyright (c) 2016 Google, Inc
 #
 
-from __future__ import print_function
-
 from contextlib import contextmanager
 import glob
 import os
index 3feddb2..7b21a12 100644 (file)
@@ -3,8 +3,6 @@
 # Copyright (c) 2016 Google, Inc
 #
 
-from __future__ import print_function
-
 import command
 import glob
 import os
index 2a38485..ee3c519 100644 (file)
@@ -4,8 +4,6 @@
 # Terminal output logging.
 #
 
-from __future__ import print_function
-
 import sys
 
 import terminal
index 1feface..446e5d6 100755 (executable)
@@ -23,8 +23,6 @@ This script works by:
 Search for ## to update the commit message manually.
 """
 
-from __future__ import print_function
-
 import glob
 import os
 import re