Skip to content

Commit 115c669

Browse files
authored
Merge pull request #42 from spacemanspiff2007/patch-1
Add info about compiled regex
2 parents fe92c09 + 95273e3 commit 115c669

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)