summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2017-05-18 18:01:32 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-05-19 08:00:52 +0000
commit56fff5d728542344c91a42801110c08127e538d1 (patch)
tree1bd4a8cca6774594d48340075cc362d9f5cef161
parentc4b85d5f9854abeee6d1dbe15ae65a7a1aada6b2 (diff)
downloadgem5-56fff5d728542344c91a42801110c08127e538d1.tar.xz
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 <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/3421 Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r--src/python/m5/main.py4
1 files changed, 0 insertions, 4 deletions
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: