Skip to content

Commit 95273e3

Browse files
Add info about compiled regex
1 parent fe92c09 commit 95273e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stackprinter/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def format(thing=None, **kwargs):
120120
121121
Example: To hide numpy internals from the traceback, set
122122
`suppressed_paths=[r"lib/python.*/site-packages/numpy"]`
123+
or
124+
`suppressed_paths=[re.compile(r"lib/python.*/site-packages/numpy")]`
123125
124126
suppressed_exception_types: list of exception classes
125127
Show less verbose formatting for exceptions in this list.

0 commit comments

Comments
 (0)