peek-python 25.0.8__tar.gz → 25.0.9__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-25.0.8 → peek_python-25.0.9}/PKG-INFO +2 -2
- {peek_python-25.0.8 → peek_python-25.0.9}/peek/peek.py +9 -7
- {peek_python-25.0.8 → peek_python-25.0.9}/peek_python.egg-info/PKG-INFO +2 -2
- {peek_python-25.0.8 → peek_python-25.0.9}/peek_python.egg-info/requires.txt +1 -1
- {peek_python-25.0.8 → peek_python-25.0.9}/pyproject.toml +2 -2
- {peek_python-25.0.8 → peek_python-25.0.9}/README.md +0 -0
- {peek_python-25.0.8 → peek_python-25.0.9}/license.txt +0 -0
- {peek_python-25.0.8 → peek_python-25.0.9}/peek/__init__.py +0 -0
- {peek_python-25.0.8 → peek_python-25.0.9}/peek_python.egg-info/SOURCES.txt +0 -0
- {peek_python-25.0.8 → peek_python-25.0.9}/peek_python.egg-info/dependency_links.txt +0 -0
- {peek_python-25.0.8 → peek_python-25.0.9}/peek_python.egg-info/top_level.txt +0 -0
- {peek_python-25.0.8 → peek_python-25.0.9}/setup.cfg +0 -0
- {peek_python-25.0.8 → peek_python-25.0.9}/tests/test_peek.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: peek-python
|
|
3
|
-
Version: 25.0.
|
|
3
|
+
Version: 25.0.9
|
|
4
4
|
Summary: peek - debugging and benchmarking made easy
|
|
5
5
|
Author-email: Ruud van der Ham <rt.van.der.ham@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/salabim/peek
|
|
@@ -13,7 +13,7 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
License-File: license.txt
|
|
14
14
|
Requires-Dist: asttokens>=3.0.0
|
|
15
15
|
Requires-Dist: colorama>=0.4.6
|
|
16
|
-
Requires-Dist: executing>=2.
|
|
16
|
+
Requires-Dist: executing>=2.2.0
|
|
17
17
|
Requires-Dist: pyperclip>=1.9.0
|
|
18
18
|
Requires-Dist: six>=1.17.0
|
|
19
19
|
Requires-Dist: tomli>=2.2.1
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# | .__/ \___| \___||_|\_\
|
|
5
5
|
# |_| like print, but easy.
|
|
6
6
|
|
|
7
|
-
__version__ = "25.0.
|
|
7
|
+
__version__ = "25.0.9"
|
|
8
8
|
|
|
9
9
|
"""
|
|
10
10
|
See https://github.com/salabim/peek for details
|
|
@@ -447,13 +447,13 @@ class _Peek:
|
|
|
447
447
|
parent_function = ""
|
|
448
448
|
else:
|
|
449
449
|
parent_function = f" in {parent_function}()"
|
|
450
|
-
|
|
450
|
+
try:
|
|
451
451
|
this_line = code[line_number - 1].strip()
|
|
452
|
-
|
|
452
|
+
except IndexError:
|
|
453
453
|
this_line = ""
|
|
454
|
-
|
|
454
|
+
try:
|
|
455
455
|
this_line_prev = code[line_number - 2].strip()
|
|
456
|
-
|
|
456
|
+
except IndexError:
|
|
457
457
|
this_line_prev = ""
|
|
458
458
|
if this_line.startswith("@") or this_line_prev.startswith("@"):
|
|
459
459
|
if as_str:
|
|
@@ -501,8 +501,10 @@ class _Peek:
|
|
|
501
501
|
this._line_number_with_filename_and_parent = ""
|
|
502
502
|
else:
|
|
503
503
|
line_number = call_node.lineno
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
try:
|
|
505
|
+
this_line = code[line_number - 1].strip()
|
|
506
|
+
except IndexError:
|
|
507
|
+
this_line=""
|
|
506
508
|
this._line_number_with_filename_and_parent = f"#{line_number}{filename_name}{parent_function}"
|
|
507
509
|
|
|
508
510
|
if this_line.startswith("with ") or this_line.startswith("with\t"):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: peek-python
|
|
3
|
-
Version: 25.0.
|
|
3
|
+
Version: 25.0.9
|
|
4
4
|
Summary: peek - debugging and benchmarking made easy
|
|
5
5
|
Author-email: Ruud van der Ham <rt.van.der.ham@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/salabim/peek
|
|
@@ -13,7 +13,7 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
License-File: license.txt
|
|
14
14
|
Requires-Dist: asttokens>=3.0.0
|
|
15
15
|
Requires-Dist: colorama>=0.4.6
|
|
16
|
-
Requires-Dist: executing>=2.
|
|
16
|
+
Requires-Dist: executing>=2.2.0
|
|
17
17
|
Requires-Dist: pyperclip>=1.9.0
|
|
18
18
|
Requires-Dist: six>=1.17.0
|
|
19
19
|
Requires-Dist: tomli>=2.2.1
|
|
@@ -10,13 +10,13 @@ authors = [
|
|
|
10
10
|
{ name = "Ruud van der Ham", email = "rt.van.der.ham@gmail.com" },
|
|
11
11
|
]
|
|
12
12
|
description = "peek - debugging and benchmarking made easy"
|
|
13
|
-
version = "25.0.
|
|
13
|
+
version = "25.0.9"
|
|
14
14
|
readme = "README.md"
|
|
15
15
|
requires-python = ">=3.7"
|
|
16
16
|
dependencies = [
|
|
17
17
|
"asttokens>=3.0.0",
|
|
18
18
|
"colorama>=0.4.6",
|
|
19
|
-
"executing>=2.
|
|
19
|
+
"executing>=2.2.0",
|
|
20
20
|
"pyperclip>=1.9.0",
|
|
21
21
|
"six>=1.17.0",
|
|
22
22
|
"tomli>=2.2.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|