jc-debug 1.0.1__tar.gz → 1.0.2__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.4
2
2
  Name: jc-debug
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Makes debugging to the console both simpler and much more powerful.
5
5
  Author-email: Jeff Clough <jeff@cloughcottage.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "jc-debug"
7
- version = "1.0.1" # Consider using a proper versioning scheme
7
+ version = "1.0.2" # Consider using a proper versioning scheme
8
8
  authors = [
9
9
  { name="Jeff Clough", email="jeff@cloughcottage.com" },
10
10
  ]
@@ -155,7 +155,7 @@ __all__ = [
155
155
  "DebugChannel",
156
156
  "line_iter",
157
157
  ]
158
- __version__ = "1.0.1"
158
+ __version__ = "1.0.2"
159
159
 
160
160
  import inspect, os, sys, traceback
161
161
 
@@ -556,7 +556,7 @@ class DebugChannel:
556
556
  message = left
557
557
  self.stream.write(self.fmt.format(**locals()))
558
558
  for message in messages:
559
- message = self.indstr + message
559
+ message = self.indstr + repr(message)
560
560
  self.stream.write(self.fmt.format(**locals()))
561
561
  message = right
562
562
  self.stream.write(self.fmt.format(**locals()))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jc-debug
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Makes debugging to the console both simpler and much more powerful.
5
5
  Author-email: Jeff Clough <jeff@cloughcottage.com>
6
6
  License: MIT License
@@ -88,6 +88,26 @@ DC: test_basics: Message 2
88
88
  """
89
89
  assert dc.indlev==0
90
90
 
91
+ # Test tuple output.
92
+ dc(('a',2,True))
93
+ assert outstr()=="""\
94
+ DC: test_basics: (
95
+ DC: test_basics: 'a'
96
+ DC: test_basics: 2
97
+ DC: test_basics: True
98
+ DC: test_basics: )
99
+ """
100
+
101
+ # Test list output.
102
+ dc(['a',2,True])
103
+ assert outstr()=="""\
104
+ DC: test_basics: [
105
+ DC: test_basics: 'a'
106
+ DC: test_basics: 2
107
+ DC: test_basics: True
108
+ DC: test_basics: ]
109
+ """
110
+
91
111
  # Test dictionary output.
92
112
  dc({'a':1,2:'b','c':True})
93
113
  assert outstr()=="""\
File without changes
File without changes
File without changes