arch: Minor cleanup of imports in isa_parser.py.
authorGabe Black <gabeblack@google.com>
Tue, 29 Sep 2020 08:09:20 +0000 (01:09 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 12 Oct 2020 04:29:07 +0000 (04:29 +0000)
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 <stever@gmail.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/isa_parser/isa_parser.py

index f6707763f1000f2ff657a4978b0e843dec273b37..eddba0c20f4528844a6bb593fa9fe6efa7a883af 100755 (executable)
 # (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 *