Browse Source

Update contrib/python/stack-data to 0.6.3

robot-contrib 1 year ago
parent
commit
86f79c5885

+ 4 - 3
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'

+ 6 - 5
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]:

+ 1 - 1
contrib/python/stack-data/stack_data/version.py

@@ -1 +1 @@
-__version__ = '0.6.2'
+__version__ = '0.6.3'

+ 1 - 1
contrib/python/stack-data/ya.make

@@ -2,7 +2,7 @@
 
 PY3_LIBRARY()
 
-VERSION(0.6.2)
+VERSION(0.6.3)
 
 LICENSE(MIT)