diff options
Diffstat (limited to 'debug_toolbar')
| -rw-r--r-- | debug_toolbar/middleware.py | 3 | ||||
| -rw-r--r-- | debug_toolbar/panels/profiling.py | 2 | ||||
| -rw-r--r-- | debug_toolbar/utils/__init__.py | 2 | 
3 files changed, 0 insertions, 7 deletions
| diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index c1d052c..1e698af 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -59,7 +59,6 @@ class DebugToolbarMiddleware(object):          self.tag = '</%s>' % dt_settings.CONFIG['TAG']      def process_request(self, request): -        __traceback_hide__ = True                                       # noqa          if not self.show_toolbar(request):              return          response = None @@ -74,7 +73,6 @@ class DebugToolbarMiddleware(object):          return response      def process_view(self, request, view_func, view_args, view_kwargs): -        __traceback_hide__ = True                                       # noqa          toolbar = self.__class__.debug_toolbars.get(threading.current_thread().ident)          if not toolbar:              return @@ -86,7 +84,6 @@ class DebugToolbarMiddleware(object):          return response      def process_response(self, request, response): -        __traceback_hide__ = True                                       # noqa          toolbar = self.__class__.debug_toolbars.pop(threading.current_thread().ident, None)          if not toolbar or getattr(response, 'streaming', False):              return response diff --git a/debug_toolbar/panels/profiling.py b/debug_toolbar/panels/profiling.py index a67c491..397069f 100644 --- a/debug_toolbar/panels/profiling.py +++ b/debug_toolbar/panels/profiling.py @@ -164,7 +164,6 @@ class ProfilingDebugPanel(DebugPanel):                      self._unwrap_closure_and_profile(cell.cell_contents)      def process_view(self, request, view_func, view_args, view_kwargs): -        __traceback_hide__ = True                                       # noqa          self.profiler = cProfile.Profile()          args = (request,) + view_args          if DJ_PROFILE_USE_LINE_PROFILER: @@ -190,7 +189,6 @@ class ProfilingDebugPanel(DebugPanel):                      self.add_node(func_list, subfunc, max_depth, cum_time=cum_time)      def process_response(self, request, response): -        __traceback_hide__ = True                                       # noqa          if not hasattr(self, 'profiler'):              return None          self.profiler.create_stats() diff --git a/debug_toolbar/utils/__init__.py b/debug_toolbar/utils/__init__.py index cec20ad..c94e19c 100644 --- a/debug_toolbar/utils/__init__.py +++ b/debug_toolbar/utils/__init__.py @@ -56,8 +56,6 @@ def tidy_stacktrace(stack):          s_path = os.path.realpath(path)          # Support hiding of frames -- used in various utilities that provide          # inspection. -        if '__traceback_hide__' in frame.f_locals: -            continue          if CONFIG['HIDE_DJANGO_SQL'] and django_path in s_path and not 'django/contrib' in s_path:              continue          if omit_path(s_path): | 
