From b7bcea923fea468a9f173c0fb7bb92d76e799184 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Mon, 7 Dec 2015 17:58:10 +0100 Subject: [PATCH] Fix broken python console --- src/PyInterp/PyInterp_Interp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PyInterp/PyInterp_Interp.cxx b/src/PyInterp/PyInterp_Interp.cxx index f2c286d43..5da3c537f 100644 --- a/src/PyInterp/PyInterp_Interp.cxx +++ b/src/PyInterp/PyInterp_Interp.cxx @@ -450,7 +450,7 @@ static int compile_command(const char *command, PyObject * global_ctxt, PyObject std::string singleCommand = command; std::string commandArgs = ""; - while (singleCommand.size() > 0 && singleCommand.at(singleCommand.size()-1) == '\n') + if (singleCommand.size() > 0 && singleCommand.at(singleCommand.size()-1) == '\n') singleCommand.erase(singleCommand.size()-1); std::size_t pos = singleCommand.find("args:"); if (pos != std::string::npos) { -- 2.39.2