Jython doesn't support 'exec' symbol in interactive console.

This commit is contained in:
Dmitry Trofimov
2013-11-19 17:59:23 +01:00
parent de091aa9f3
commit 8551ccb74f
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ import os
import sys
from pydevd_constants import USE_LIB_COPY
from pydevd_constants import IS_JYTHON
if USE_LIB_COPY:
import _pydev_threading as threading
@@ -86,10 +87,10 @@ class Command:
@staticmethod
def symbol_for_fragment(code_fragment):
if code_fragment.is_single_line:
if IS_JYTHON or code_fragment.is_single_line:
symbol = 'single'
else:
symbol = 'exec'
symbol = 'exec' # Jython doesn't support this
return symbol
def run(self):
+4
View File
@@ -41,6 +41,10 @@ MAXIMUM_VARIABLE_REPRESENTATION_SIZE = 1000
import os
import pydevd_vm_type
IS_JYTHON = pydevd_vm_type.GetVmType() == pydevd_vm_type.PydevdVmType.JYTHON
#=======================================================================================================================
# Python 3?
#=======================================================================================================================