diff options
author | Jason Molenda <jmolenda@apple.com> | 2010-06-09 21:56:00 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2010-06-09 21:56:00 +0000 |
commit | b1823404c3360a8fc7fd74e89ec0566737650919 (patch) | |
tree | 59dd86df01562a46966e798e034fe84514591123 /lldb/source/Interpreter/embedded_interpreter.py | |
parent | f7a4715fdb0bbd989a551ec464e2e082527e69bd (diff) | |
download | bcm5719-llvm-b1823404c3360a8fc7fd74e89ec0566737650919.tar.gz bcm5719-llvm-b1823404c3360a8fc7fd74e89ec0566737650919.zip |
Committing patch from Joseph Ranieri to handle 'exit()' the same
as 'quit()' in the python script environment.
llvm-svn: 105756
Diffstat (limited to 'lldb/source/Interpreter/embedded_interpreter.py')
-rw-r--r-- | lldb/source/Interpreter/embedded_interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/embedded_interpreter.py b/lldb/source/Interpreter/embedded_interpreter.py index 38b2f9ef01e..549283348e5 100644 --- a/lldb/source/Interpreter/embedded_interpreter.py +++ b/lldb/source/Interpreter/embedded_interpreter.py @@ -45,7 +45,7 @@ class SimpleREPL(code.InteractiveConsole): # Check the input string to see if it was the quit # command. If so, intercept it, so that it doesn't # close stdin on us! - if (temp_str.lower() == "quit()"): + if (temp_str.lower() == "quit()" or temp_str.lower() == "exit()"): self.loop_exit = True in_str = "raise SystemExit " return in_str |