peek-python 1.5.0.post0__tar.gz → 1.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/PKG-INFO +1 -1
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/peek/peek.py +4 -3
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/peek_python.egg-info/PKG-INFO +1 -1
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/pyproject.toml +1 -1
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/README.md +0 -0
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/license.txt +0 -0
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/peek/__init__.py +0 -0
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/peek_python.egg-info/SOURCES.txt +0 -0
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/peek_python.egg-info/dependency_links.txt +0 -0
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/peek_python.egg-info/top_level.txt +0 -0
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/setup.cfg +0 -0
- {peek_python-1.5.0.post0 → peek_python-1.5.1}/tests/test_peek.py +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# | .__/ \___| \___||_|\_\
|
|
5
5
|
# |_| like print, but easy.
|
|
6
6
|
|
|
7
|
-
__version__ = "1.5.
|
|
7
|
+
__version__ = "1.5.1"
|
|
8
8
|
|
|
9
9
|
"""
|
|
10
10
|
See https://github.com/salabim/peek for details
|
|
@@ -479,8 +479,8 @@ class _Peek:
|
|
|
479
479
|
code = codes[filename]
|
|
480
480
|
frame_info = inspect.getframeinfo(call_frame, context=1)
|
|
481
481
|
|
|
482
|
-
parent_function = frame_info.function
|
|
483
|
-
parent_function = Source.executing(call_frame).code_qualname()
|
|
482
|
+
# parent_function = frame_info.function
|
|
483
|
+
parent_function = Source.executing(call_frame).code_qualname() # changed in version 1.3.10 to include class name
|
|
484
484
|
parent_function = parent_function.replace(".<locals>.", ".")
|
|
485
485
|
if parent_function == "<module>" or str(this.show_line_number) in ("n", "no parent"):
|
|
486
486
|
parent_function = ""
|
|
@@ -872,6 +872,7 @@ builtins.peek = peek
|
|
|
872
872
|
p = peek.fork()
|
|
873
873
|
|
|
874
874
|
|
|
875
|
+
|
|
875
876
|
class PeekModule(types.ModuleType):
|
|
876
877
|
def __call__(self, *args, **kwargs):
|
|
877
878
|
return peek(*args, **kwargs)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|