From b1823404c3360a8fc7fd74e89ec0566737650919 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Wed, 9 Jun 2010 21:56:00 +0000 Subject: Committing patch from Joseph Ranieri to handle 'exit()' the same as 'quit()' in the python script environment. llvm-svn: 105756 --- lldb/source/Interpreter/ScriptInterpreterPython.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 330e43742dc7..59eb46422981 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -88,7 +88,7 @@ class SimpleREPL(code.InteractiveConsole):\n\ # Check the input string to see if it was the quit\n\ # command. If so, intercept it, so that it doesn't\n\ # close stdin on us!\n\ - if (temp_str.lower() == \"quit()\"):\n\ + if (temp_str.lower() == \"quit()\" or temp_str.lower() == \"exit()\"):\n\ self.loop_exit = True\n\ in_str = \"raise SystemExit \"\n\ return in_str\n\ -- cgit v1.2.3