[lldb] Remove use of __future__ in python

These were useful primarily for the Python 2 to 3 transition. Python 2
is no longer supported so these are no longer necessary.

Differential Revision: https://reviews.llvm.org/D157759
This commit is contained in:
Alex Langford 2023-08-11 14:46:23 -07:00
parent 63c7815faf
commit e634c2f714
25 changed files with 0 additions and 61 deletions

View File

@ -10,8 +10,6 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.
from __future__ import print_function
import sys, os, re, shutil
from datetime import date

View File

@ -1,6 +1,3 @@
from __future__ import absolute_import
from __future__ import print_function
# System modules
import os
import re

View File

@ -1,7 +1,5 @@
# Module level initialization for the `lldbsuite.test` module.
from __future__ import absolute_import
from . import dotest
run_suite = dotest.run_suite

View File

@ -12,9 +12,6 @@ Use the following to get only the benchmark results in your terminal output:
./bench.py -e /Volumes/data/lldb/svn/regression/build/Debug/lldb -x '-F Driver::MainLoop()' 2>&1 | grep -P '^lldb.*benchmark:'
"""
from __future__ import print_function
from __future__ import absolute_import
import os
from optparse import OptionParser

View File

@ -7,9 +7,6 @@ Provides the configuration class, which holds all information related to
how this invocation of the test suite should be run.
"""
from __future__ import absolute_import
from __future__ import print_function
# System modules
import os

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import
# System modules
from distutils.version import LooseVersion
from functools import wraps

View File

@ -18,9 +18,6 @@ Type:
for available options.
"""
from __future__ import absolute_import
from __future__ import print_function
# System modules
import atexit
import datetime

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import
# System modules
import argparse
import sys

View File

@ -11,9 +11,6 @@ and multiple OS types, verifying changes across all.
Provides helper support for adding lldb test paths to the python path.
"""
from __future__ import print_function
from __future__ import absolute_import
# System modules
import os
import platform

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import
# System modules
import time

View File

@ -1,6 +1,3 @@
from __future__ import print_function
from __future__ import absolute_import
# System modules
import os
import textwrap

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import
# System modules
import os
import sys

View File

@ -1,7 +1,5 @@
""" This module represents an abstraction of an lldb target / host platform. """
from __future__ import absolute_import
# System modules
import itertools

View File

@ -1,8 +1,6 @@
""" This module contains functions used by the test cases to hide the
architecture and/or the platform dependent nature of the tests. """
from __future__ import absolute_import
# System modules
import itertools
import re

View File

@ -27,9 +27,6 @@ OK
$
"""
from __future__ import absolute_import
from __future__ import print_function
# System modules
import abc
from distutils.version import LooseVersion

View File

@ -4,9 +4,6 @@ Some of the test suite takes advantage of the utility functions defined here.
They can also be useful for general purpose lldb scripting.
"""
from __future__ import print_function
from __future__ import absolute_import
# System modules
import errno
import io

View File

@ -2,9 +2,6 @@
Provides definitions for various lldb test categories
"""
from __future__ import absolute_import
from __future__ import print_function
# System modules
import sys

View File

@ -2,9 +2,6 @@
Base class for gdb-remote test cases.
"""
from __future__ import division, print_function
import errno
import os
import os.path

View File

@ -1,8 +1,6 @@
"""Module for supporting unit testing of the lldb-server debug monitor exe.
"""
from __future__ import division, print_function
import binascii
import os
import os.path

View File

@ -5,8 +5,6 @@
# 'command script import host_art_bt.py'
# 'host_art_bt'
from __future__ import print_function
import sys
import re

View File

@ -1,7 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function
import use_lldb_suite
import sys

View File

@ -1,5 +1,3 @@
from __future__ import print_function
import sys
import textwrap
from StringIO import StringIO

View File

@ -1,5 +1,3 @@
from __future__ import with_statement
import unittest2
from unittest2.test.support import OldTestResult, catch_warnings

View File

@ -2,9 +2,6 @@
Test mpx-table command.
"""
from __future__ import print_function
import os
import time
import re

View File

@ -12,8 +12,6 @@ Some of the test suite takes advantage of the utility functions defined here.
They can also be useful for general purpose lldb scripting.
"""
from __future__ import print_function
import lldb
import os
import sys