From 56fff5d728542344c91a42801110c08127e538d1 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Thu, 18 May 2017 18:01:32 +0100 Subject: python: Remove unused readline import The readline module is imported by main.py but doesn't seem to be used. Change-Id: I7888e3b6ad0a0fedc14b0feec2adf0a39883bbf8 Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/3421 Reviewed-by: Jason Lowe-Power --- src/python/m5/main.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/python/m5') diff --git a/src/python/m5/main.py b/src/python/m5/main.py index 49314303b..ad452886a 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -410,10 +410,6 @@ def main(*args): scope = { '__file__' : filename, '__name__' : '__m5_main__' } - # we want readline if we're doing anything interactive - if options.interactive or options.pdb: - exec "import readline" in scope - # if pdb was requested, execfile the thing under pdb, otherwise, # just do the execfile normally if options.pdb: -- cgit v1.2.3