diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-10-17 09:40:44 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-10-17 09:57:21 +0300 |
commit | 86f79c5885de0ada17ad009a0793fa5335101d5b (patch) | |
tree | 03595a8d9ed322bc97de2285263c3ae12606c704 | |
parent | 784925324fd115c37bc98c5bbfe64c15f9966d74 (diff) | |
download | ydb-86f79c5885de0ada17ad009a0793fa5335101d5b.tar.gz |
Update contrib/python/stack-data to 0.6.3
-rw-r--r-- | contrib/python/stack-data/.dist-info/METADATA | 7 | ||||
-rw-r--r-- | contrib/python/stack-data/stack_data/utils.py | 11 | ||||
-rw-r--r-- | contrib/python/stack-data/stack_data/version.py | 2 | ||||
-rw-r--r-- | contrib/python/stack-data/ya.make | 2 |
4 files changed, 12 insertions, 10 deletions
diff --git a/contrib/python/stack-data/.dist-info/METADATA b/contrib/python/stack-data/.dist-info/METADATA index a0d48e2b48..e7c52daf19 100644 --- a/contrib/python/stack-data/.dist-info/METADATA +++ b/contrib/python/stack-data/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: stack-data -Version: 0.6.2 +Version: 0.6.3 Summary: Extract data from python stack frames and tracebacks for informative displays Home-page: http://github.com/alexmojaki/stack_data Author: Alex Hall @@ -14,13 +14,14 @@ Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Topic :: Software Development :: Debuggers Description-Content-Type: text/markdown License-File: LICENSE.txt -Requires-Dist: executing (>=1.2.0) -Requires-Dist: asttokens (>=2.1.0) +Requires-Dist: executing >=1.2.0 +Requires-Dist: asttokens >=2.1.0 Requires-Dist: pure-eval Provides-Extra: tests Requires-Dist: pytest ; extra == 'tests' diff --git a/contrib/python/stack-data/stack_data/utils.py b/contrib/python/stack-data/stack_data/utils.py index 78ce2d60a4..ad8cd38dc4 100644 --- a/contrib/python/stack-data/stack_data/utils.py +++ b/contrib/python/stack-data/stack_data/utils.py @@ -92,12 +92,13 @@ def is_frame(frame_or_tb: Union[FrameType, TracebackType]) -> bool: def iter_stack(frame_or_tb: Union[FrameType, TracebackType]) -> Iterator[Union[FrameType, TracebackType]]: - while frame_or_tb: - yield frame_or_tb - if is_frame(frame_or_tb): - frame_or_tb = frame_or_tb.f_back + current: Union[FrameType, TracebackType, None] = frame_or_tb + while current: + yield current + if is_frame(current): + current = current.f_back else: - frame_or_tb = frame_or_tb.tb_next + current = current.tb_next def frame_and_lineno(frame_or_tb: Union[FrameType, TracebackType]) -> Tuple[FrameType, int]: diff --git a/contrib/python/stack-data/stack_data/version.py b/contrib/python/stack-data/stack_data/version.py index aece342d93..a68d2bd0a0 100644 --- a/contrib/python/stack-data/stack_data/version.py +++ b/contrib/python/stack-data/stack_data/version.py @@ -1 +1 @@ -__version__ = '0.6.2' +__version__ = '0.6.3' diff --git a/contrib/python/stack-data/ya.make b/contrib/python/stack-data/ya.make index e43a13cf48..a740dfa2db 100644 --- a/contrib/python/stack-data/ya.make +++ b/contrib/python/stack-data/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(0.6.2) +VERSION(0.6.3) LICENSE(MIT) |