Skip to content

Commit cdf7930

Browse files
Only replace first instance of NULL character in bytestream (#10)
* Only replace first instance of NULL character in bytestream * Bump patch version --------- Co-authored-by: Adam Mitchell <adam.mitchell@brillpower.com>
1 parent 7d12b15 commit cdf7930

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "python_thingset"
7-
version = "0.2.4"
7+
version = "0.2.5"
88
description = "A Python library for ThingSet functionality"
99
authors = [
1010
{ name = "Adam Mitchell", email = "adam.mitchell@brillpower.com" }

python_thingset/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def _get_status_byte(self, data: bytes) -> int:
223223
return None
224224

225225
def _strip_null(self, data: bytes) -> bytes:
226-
return data[1:].replace(b"\xf6", b"")
226+
return data[1:].replace(b"\xf6", b"", 1)
227227

228228
@property
229229
def mode(self) -> int:

0 commit comments

Comments
 (0)