mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 23:21:11 +00:00
[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:
parent
63c7815faf
commit
e634c2f714
@ -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
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
# System modules
|
||||
import os
|
||||
import re
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
# System modules
|
||||
from distutils.version import LooseVersion
|
||||
from functools import wraps
|
||||
|
@ -18,9 +18,6 @@ Type:
|
||||
for available options.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
# System modules
|
||||
import atexit
|
||||
import datetime
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
# System modules
|
||||
import argparse
|
||||
import sys
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
# System modules
|
||||
import time
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import
|
||||
|
||||
# System modules
|
||||
import os
|
||||
import textwrap
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
# System modules
|
||||
import os
|
||||
import sys
|
||||
|
@ -1,7 +1,5 @@
|
||||
""" This module represents an abstraction of an lldb target / host platform. """
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
# System modules
|
||||
import itertools
|
||||
|
||||
|
@ -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
|
||||
|
@ -27,9 +27,6 @@ OK
|
||||
$
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
# System modules
|
||||
import abc
|
||||
from distutils.version import LooseVersion
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -2,9 +2,6 @@
|
||||
Base class for gdb-remote test cases.
|
||||
"""
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
|
||||
import errno
|
||||
import os
|
||||
import os.path
|
||||
|
@ -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
|
||||
|
@ -5,8 +5,6 @@
|
||||
# 'command script import host_art_bt.py'
|
||||
# 'host_art_bt'
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import re
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import use_lldb_suite
|
||||
|
||||
import sys
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import textwrap
|
||||
from StringIO import StringIO
|
||||
|
@ -1,5 +1,3 @@
|
||||
from __future__ import with_statement
|
||||
|
||||
import unittest2
|
||||
from unittest2.test.support import OldTestResult, catch_warnings
|
||||
|
||||
|
@ -2,9 +2,6 @@
|
||||
Test mpx-table command.
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
import os
|
||||
import time
|
||||
import re
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user