From d0960c95eb238da5e886fba1ca978cfacb6f996b Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Wed, 22 Jun 2016 12:55:14 +0300 Subject: [PATCH] Fixes after review --- python/helpers/pydev/_pydev_bundle/pydev_console_utils.py | 2 +- .../python/console/PythonDebugConsoleCommunication.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/python/helpers/pydev/_pydev_bundle/pydev_console_utils.py b/python/helpers/pydev/_pydev_bundle/pydev_console_utils.py index 112d0ae36de9..c9078e14457d 100644 --- a/python/helpers/pydev/_pydev_bundle/pydev_console_utils.py +++ b/python/helpers/pydev/_pydev_bundle/pydev_console_utils.py @@ -132,11 +132,11 @@ class DebugConsoleStdIn(BaseStdIn): try: cmd = self.debugger.cmd_factory.make_input_requested_message() self.debugger.writer.add_command(cmd) - return self.original_stdin.readline(*args, **kwargs) except Exception: import traceback traceback.print_exc() return '\n' + return self.original_stdin.readline(*args, **kwargs) class CodeFragment: diff --git a/python/src/com/jetbrains/python/console/PythonDebugConsoleCommunication.java b/python/src/com/jetbrains/python/console/PythonDebugConsoleCommunication.java index e357c4dd89ab..ccf185786ece 100644 --- a/python/src/com/jetbrains/python/console/PythonDebugConsoleCommunication.java +++ b/python/src/com/jetbrains/python/console/PythonDebugConsoleCommunication.java @@ -89,9 +89,7 @@ public class PythonDebugConsoleCommunication extends AbstractConsoleCommunicatio if (processInput != null) { try { final Charset defaultCharset = EncodingProjectManager.getInstance(myDebugProcess.getProject()).getDefaultCharset(); - String text = code.getText(); - // we save previous command text!!! - processInput.write((text + "\n").getBytes(defaultCharset)); + processInput.write((code.getText() + "\n").getBytes(defaultCharset)); processInput.flush(); } catch (IOException e) {