Skip to content

Commit 5b30bff

Browse files
committed
Remove timeout from handler repr's
1 parent 1316df4 commit 5b30bff

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

pslab/connection/_serial.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ def __repr__(self) -> str: # noqa
153153
f"{self.__class__.__name__}"
154154
"["
155155
f"{self.port}, "
156-
f"{self.baudrate} baud, "
157-
f"timeout {self.timeout} s"
156+
f"{self.baudrate} baud"
158157
"]"
159158
)

pslab/connection/wlan.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,4 @@ def write(self, data: bytes) -> int:
104104
return self._sock.sendall(data)
105105

106106
def __repr__(self) -> str: # noqa
107-
return (
108-
f"{self.__class__.__name__}"
109-
"["
110-
f"{self.host}:{self.port}, "
111-
f"timeout {self.timeout} s"
112-
"]"
113-
)
107+
return f"{self.__class__.__name__}[{self.host}:{self.port}]"

0 commit comments

Comments
 (0)