From: Gabe Black Date: Tue, 29 Sep 2020 08:09:20 +0000 (-0700) Subject: arch: Minor cleanup of imports in isa_parser.py. X-Git-Tag: develop-gem5-snapshot~651 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86e0cdf824fcd579a411658d9c3dda57b99c93cc;p=gem5.git arch: Minor cleanup of imports in isa_parser.py. The with statement and print function are no longer in the future, and the "inspect" module is not used. Also alphabetize the imports. Change-Id: I35f2b7b0f7495cb9ca79d2cbe05f020560ec3593 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35280 Reviewed-by: Steve Reinhardt Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/arch/isa_parser/isa_parser.py b/src/arch/isa_parser/isa_parser.py index f6707763f..eddba0c20 100755 --- a/src/arch/isa_parser/isa_parser.py +++ b/src/arch/isa_parser/isa_parser.py @@ -37,11 +37,10 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -from __future__ import with_statement, print_function import os -import sys import re -import inspect, traceback +import sys +import traceback # get type names from types import *