peek-python 24.0.2.post1__tar.gz → 24.0.3__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-24.0.2.post1 → peek_python-24.0.3}/PKG-INFO +1 -1
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/peek/peek.py +3 -4
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/peek_python.egg-info/PKG-INFO +1 -1
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/pyproject.toml +1 -1
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/README.md +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/license.txt +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/peek/__init__.py +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/peek_python.egg-info/SOURCES.txt +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/peek_python.egg-info/dependency_links.txt +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/peek_python.egg-info/requires.txt +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/peek_python.egg-info/top_level.txt +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/setup.cfg +0 -0
- {peek_python-24.0.2.post1 → peek_python-24.0.3}/tests/test_peek.py +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# | .__/ \___| \___||_|\_\
|
|
5
5
|
# |_| like print, but easy.
|
|
6
6
|
|
|
7
|
-
__version__ = "24.0.
|
|
7
|
+
__version__ = "24.0.3"
|
|
8
8
|
|
|
9
9
|
"""
|
|
10
10
|
See https://github.com/salabim/peek for details
|
|
@@ -67,6 +67,7 @@ colors = dict(
|
|
|
67
67
|
white="\033[0;37m",
|
|
68
68
|
)
|
|
69
69
|
colors["-"] = "\033[0m"
|
|
70
|
+
colors[""] = "\033[0m"
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
ansi_to_rgb = {
|
|
@@ -111,8 +112,6 @@ def check_validity(name, value):
|
|
|
111
112
|
return
|
|
112
113
|
|
|
113
114
|
if name in ("color", "color_value"):
|
|
114
|
-
if name == "color_value" and value == "":
|
|
115
|
-
return
|
|
116
115
|
if isinstance(value, str) and value.lower() in colors:
|
|
117
116
|
return
|
|
118
117
|
|
|
@@ -568,7 +567,7 @@ class _Peek:
|
|
|
568
567
|
elif self.output == "stderr":
|
|
569
568
|
print(s, file=sys.stderr)
|
|
570
569
|
elif self.output == "stdout":
|
|
571
|
-
if self.color
|
|
570
|
+
if self.color not in ["","-"]:
|
|
572
571
|
s = colors[self.color.lower()] + s + colors["-"]
|
|
573
572
|
if Pythonista:
|
|
574
573
|
while s:
|
|
@@ -10,7 +10,7 @@ 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 = "24.0.
|
|
13
|
+
version = "24.0.3"
|
|
14
14
|
readme = "README.md"
|
|
15
15
|
requires-python = ">=3.6"
|
|
16
16
|
dependencies = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|