mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Move constants to plugins.
This commit is contained in:
@@ -5,8 +5,6 @@ STATE_RUN = 1
|
||||
STATE_SUSPEND = 2
|
||||
|
||||
PYTHON_SUSPEND = 1
|
||||
DJANGO_SUSPEND = 2
|
||||
JINJA2_SUSPEND = 3
|
||||
|
||||
try:
|
||||
__setFalse = False
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from pydevd_comm import CMD_SET_BREAK, CMD_ADD_EXCEPTION_BREAK
|
||||
import inspect
|
||||
from pydevd_constants import DJANGO_SUSPEND, STATE_SUSPEND, GetThreadId, DictContains
|
||||
from pydevd_constants import STATE_SUSPEND, GetThreadId, DictContains
|
||||
from pydevd_file_utils import NormFileToServer, GetFileNameAndBaseFromFile
|
||||
from pydevd_breakpoints import LineBreakpoint, get_exception_name
|
||||
import pydevd_vars
|
||||
@@ -8,6 +8,7 @@ import traceback
|
||||
import pydev_log
|
||||
from pydevd_frame_utils import add_exception_to_frame, FCode, cached_call, just_raised
|
||||
|
||||
DJANGO_SUSPEND = 2
|
||||
|
||||
class DjangoLineBreakpoint(LineBreakpoint):
|
||||
def __init__(self, file, line, condition, func_name, expression):
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import traceback
|
||||
from pydevd_breakpoints import LineBreakpoint, get_exception_name
|
||||
from pydevd_constants import JINJA2_SUSPEND, GetThreadId, STATE_SUSPEND, DictContains
|
||||
from pydevd_constants import GetThreadId, STATE_SUSPEND, DictContains
|
||||
from pydevd_comm import CMD_SET_BREAK, CMD_STEP_OVER, CMD_ADD_EXCEPTION_BREAK
|
||||
import pydevd_vars
|
||||
from pydevd_file_utils import GetFileNameAndBaseFromFile
|
||||
from pydevd_frame_utils import add_exception_to_frame, FCode, cached_call
|
||||
|
||||
JINJA2_SUSPEND = 3
|
||||
|
||||
class Jinja2LineBreakpoint(LineBreakpoint):
|
||||
|
||||
def __init__(self, file, line, condition, func_name, expression):
|
||||
|
||||
Reference in New Issue
Block a user