Skip to content

Commit 3585f06

Browse files
committed
Unit tests
1 parent e845ad1 commit 3585f06

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

openxc/formats/binary.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ def parse_next_message(self):
3030
# 3. if it worked, great, we're oriented in the stream - continue
3131
# 4. if either couldn't be parsed, skip to the next byte and repeat
3232
while message is None and len(self.message_buffer) > 1:
33-
##print(self.message_buffer)
34-
if (b"8a" in self.message_buffer):
35-
print("8a found")
3633
message_length, message_start = _DecodeVarint(self.message_buffer, 0)
3734
# sanity check to make sure we didn't parse some huge number that's
3835
# clearly not the length prefix

openxc/sources/trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def read(self):
6767
if self.realtime and timestamp is not None:
6868
self._store_timestamp(timestamp)
6969
self._wait(self.starting_time, self.first_timestamp, timestamp)
70-
return line + "\x00"
70+
return (line + "\x00").encode("cp437")
7171

7272
@staticmethod
7373
def _open_file(filename):

0 commit comments

Comments
 (0)