From 86e0cdf824fcd579a411658d9c3dda57b99c93cc Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 29 Sep 2020 01:09:20 -0700 Subject: [PATCH] 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 --- src/arch/isa_parser/isa_parser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 * -- 2.30.2