From 486521ffc1cd601a303545a9cef8fbada8e604fd Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Sat, 6 Sep 2014 01:07:32 +0200 Subject: [PATCH] Move constants to plugins. --- python/helpers/pydev/pydevd_constants.py | 2 -- python/helpers/pydev/pydevd_plugins/django_debug.py | 3 ++- python/helpers/pydev/pydevd_plugins/jinja2_debug.py | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/python/helpers/pydev/pydevd_constants.py b/python/helpers/pydev/pydevd_constants.py index a4b15d85acd5..5e7a7a926bfb 100644 --- a/python/helpers/pydev/pydevd_constants.py +++ b/python/helpers/pydev/pydevd_constants.py @@ -5,8 +5,6 @@ STATE_RUN = 1 STATE_SUSPEND = 2 PYTHON_SUSPEND = 1 -DJANGO_SUSPEND = 2 -JINJA2_SUSPEND = 3 try: __setFalse = False diff --git a/python/helpers/pydev/pydevd_plugins/django_debug.py b/python/helpers/pydev/pydevd_plugins/django_debug.py index 6785b50f54df..8bf4f109e359 100644 --- a/python/helpers/pydev/pydevd_plugins/django_debug.py +++ b/python/helpers/pydev/pydevd_plugins/django_debug.py @@ -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): diff --git a/python/helpers/pydev/pydevd_plugins/jinja2_debug.py b/python/helpers/pydev/pydevd_plugins/jinja2_debug.py index f741282738f3..e3cd05c52468 100644 --- a/python/helpers/pydev/pydevd_plugins/jinja2_debug.py +++ b/python/helpers/pydev/pydevd_plugins/jinja2_debug.py @@ -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):