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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: peek-python
3
- Version: 24.0.2.post1
3
+ Version: 24.0.3
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
@@ -4,7 +4,7 @@
4
4
  # | .__/ \___| \___||_|\_\
5
5
  # |_| like print, but easy.
6
6
 
7
- __version__ = "24.0.2"
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 != "-" or self.color_value != "-":
570
+ if self.color not in ["","-"]:
572
571
  s = colors[self.color.lower()] + s + colors["-"]
573
572
  if Pythonista:
574
573
  while s:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: peek-python
3
- Version: 24.0.2.post1
3
+ Version: 24.0.3
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
@@ -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.2.post1"
13
+ version = "24.0.3"
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.6"
16
16
  dependencies = [