diff options
| author | arcadia-devtools <[email protected]> | 2022-06-16 17:24:12 +0300 |
|---|---|---|
| committer | arcadia-devtools <[email protected]> | 2022-06-16 17:24:12 +0300 |
| commit | f6202b38cf98f2ad0032a6efed86f4ce1ccf86a4 (patch) | |
| tree | 86b4cfeefeb200e9ac8c1f24f60de089374b70dd /contrib/python/stack-data/stack_data/formatting.py | |
| parent | 108a3f2a5b7ace8b0d68d936451961c889a94aa3 (diff) | |
intermediate changes
ref:e623d1e80066c7bc52d0c78d3c885faf82ccd263
Diffstat (limited to 'contrib/python/stack-data/stack_data/formatting.py')
| -rw-r--r-- | contrib/python/stack-data/stack_data/formatting.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/python/stack-data/stack_data/formatting.py b/contrib/python/stack-data/stack_data/formatting.py index b37da99b621..7c5c0e5fc56 100644 --- a/contrib/python/stack-data/stack_data/formatting.py +++ b/contrib/python/stack-data/stack_data/formatting.py @@ -11,7 +11,7 @@ from stack_data.utils import assert_ class Formatter: def __init__( self, *, - options=Options(), + options=None, pygmented=False, show_executing_node=True, pygments_formatter_cls=None, @@ -29,6 +29,9 @@ class Formatter: chain=True, collapse_repeated_frames=True ): + if options is None: + options = Options() + if pygmented and not options.pygments_formatter: if show_executing_node: pygments_style = style_with_executing_node( |
