Skip to content

Commit fed2d27

Browse files
committed
fix comma in value issue
1 parent 8ba2a64 commit fed2d27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: adafruit_json_stream.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def next_value(self, endswith=None):
7676
char = self.read()
7777
except EOFError:
7878
char = endswith
79-
if char == endswith or (not in_string and char in (ord("]"), ord("}"))):
79+
if not in_string and (char == endswith or char in (ord("]"), ord("}"))):
8080
if len(buf) == 0:
8181
return None
8282
value_string = bytes(buf).decode("utf-8")
83-
# print(repr(value_string))
83+
# print(f"{repr(value_string)}, {endswith=}")
8484
return json.loads(value_string)
8585
if char == ord("{"):
8686
return TransientObject(self)

0 commit comments

Comments
 (0)