patman: Drop references to __future__

We don't need these now that the tools using Python 3. Drop them.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2020-04-17 18:08:54 -06:00
parent 515ce965d6
commit 83a4518771
20 changed files with 0 additions and 40 deletions

View file

@ -9,8 +9,6 @@
"""See README for more information""" """See README for more information"""
from __future__ import print_function
from distutils.sysconfig import get_python_lib from distutils.sysconfig import get_python_lib
import glob import glob
import multiprocessing import multiprocessing

View file

@ -15,8 +15,6 @@ Currently supported: raw and stage types with compression, padding empty areas
with empty files, fixed-offset files with empty files, fixed-offset files
""" """
from __future__ import print_function
from collections import OrderedDict from collections import OrderedDict
import io import io
import struct import struct

View file

@ -9,8 +9,6 @@ These create and read various CBFSs and compare the results with expected
values and with cbfstool values and with cbfstool
""" """
from __future__ import print_function
import io import io
import os import os
import shutil import shutil

View file

@ -5,8 +5,6 @@
# Creates binary images from input files controlled by a description # Creates binary images from input files controlled by a description
# #
from __future__ import print_function
from collections import OrderedDict from collections import OrderedDict
import os import os
import sys import sys

View file

@ -5,8 +5,6 @@
# Handle various things related to ELF images # Handle various things related to ELF images
# #
from __future__ import print_function
from collections import namedtuple, OrderedDict from collections import namedtuple, OrderedDict
import command import command
import io import io

View file

@ -4,8 +4,6 @@
# Base class for all entries # Base class for all entries
# #
from __future__ import print_function
from collections import namedtuple from collections import namedtuple
import importlib import importlib
import os import os

View file

@ -8,8 +8,6 @@ Sections are entries which can contain other entries. This allows hierarchical
images to be created. images to be created.
""" """
from __future__ import print_function
from collections import OrderedDict from collections import OrderedDict
import re import re
import sys import sys

View file

@ -6,8 +6,6 @@
# #
# python -m unittest func_test.TestFunctional.testHelp # python -m unittest func_test.TestFunctional.testHelp
from __future__ import print_function
import hashlib import hashlib
from optparse import OptionParser from optparse import OptionParser
import os import os

View file

@ -5,8 +5,6 @@
# Class for an image, the output of binman # Class for an image, the output of binman
# #
from __future__ import print_function
from collections import OrderedDict from collections import OrderedDict
import fnmatch import fnmatch
from operator import attrgetter from operator import attrgetter

View file

@ -6,8 +6,6 @@
"""See README for more information""" """See README for more information"""
from __future__ import print_function
import multiprocessing import multiprocessing
import os import os
import re import re

View file

@ -25,8 +25,6 @@ options. For more information about the use of this options and tool please
see doc/driver-model/of-plat.rst see doc/driver-model/of-plat.rst
""" """
from __future__ import print_function
from optparse import OptionParser from optparse import OptionParser
import os import os
import sys import sys

View file

@ -9,8 +9,6 @@ This includes unit tests for some functions and functional tests for the dtoc
tool. tool.
""" """
from __future__ import print_function
import collections import collections
import os import os
import struct import struct

View file

@ -4,8 +4,6 @@
# Written by Simon Glass <sjg@chromium.org> # Written by Simon Glass <sjg@chromium.org>
# #
from __future__ import print_function
from optparse import OptionParser from optparse import OptionParser
import glob import glob
import os import os

View file

@ -2,8 +2,6 @@
# Copyright (c) 2011 The Chromium OS Authors. # Copyright (c) 2011 The Chromium OS Authors.
# #
from __future__ import print_function
import itertools import itertools
import os import os

View file

@ -2,8 +2,6 @@
# Copyright (c) 2011 The Chromium OS Authors. # Copyright (c) 2011 The Chromium OS Authors.
# #
from __future__ import print_function
try: try:
import configparser as ConfigParser import configparser as ConfigParser
except: except:

View file

@ -7,8 +7,6 @@
This module handles terminal interaction including ANSI color codes. This module handles terminal interaction including ANSI color codes.
""" """
from __future__ import print_function
import os import os
import re import re
import shutil import shutil

View file

@ -3,8 +3,6 @@
# Copyright (c) 2016 Google, Inc # Copyright (c) 2016 Google, Inc
# #
from __future__ import print_function
from contextlib import contextmanager from contextlib import contextmanager
import glob import glob
import os import os

View file

@ -3,8 +3,6 @@
# Copyright (c) 2016 Google, Inc # Copyright (c) 2016 Google, Inc
# #
from __future__ import print_function
import command import command
import glob import glob
import os import os

View file

@ -4,8 +4,6 @@
# Terminal output logging. # Terminal output logging.
# #
from __future__ import print_function
import sys import sys
import terminal import terminal

View file

@ -23,8 +23,6 @@ This script works by:
Search for ## to update the commit message manually. Search for ## to update the commit message manually.
""" """
from __future__ import print_function
import glob import glob
import os import os
import re import re