Skip to content

Commit 0edeb5c

Browse files
committed
Adding comments
1 parent b1623ce commit 0edeb5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sparkle/selector/extractor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def decode_stream(stream: Any) -> str:
195195
if stream is None:
196196
return ""
197197
if isinstance(stream, bytes):
198+
# use replace to substitute undecodable bytes with replacement character
198199
return stream.decode(errors="replace")
199200
return str(stream)
200201

0 commit comments

Comments
 (0)