Skip to content

Commit eba0e06

Browse files
living180matthiask
authored andcommitted
Update tidy_stacktrace() docstring.
1 parent 813cfbf commit eba0e06

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

debug_toolbar/utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ def omit_path(path):
4747

4848
def tidy_stacktrace(stack):
4949
"""
50-
Clean up stacktrace and remove all entries that:
51-
1. Are part of Django (except contrib apps)
52-
2. Are part of socketserver (used by Django's dev server)
53-
3. Are the last entry (which is part of our stacktracing code)
50+
Clean up stacktrace and remove all entries that are excluded by the
51+
HIDE_IN_STACKTRACES setting.
5452
55-
``stack`` should be a list of frame tuples from ``inspect.stack()``
53+
``stack`` should be a list of frame tuples from ``inspect.stack()`` or
54+
``debug_toolbar.utils.get_stack()``.
5655
"""
5756
trace = []
5857
for frame, path, line_no, func_name, text in (f[:5] for f in stack):

0 commit comments

Comments
 (0)