mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Jython doesn't support 'exec' symbol in interactive console.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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?
|
||||
#=======================================================================================================================
|
||||
|
||||
Reference in New Issue
Block a user