Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 29efcddd9004e3645efd347c1ed2d25564a0cd15
https://github.com/tribe29/checkmk/commit/29efcddd9004e3645efd347c1ed2d2556…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-11-23 (Mon, 23 Nov 2020)
Changed paths:
M cmk/fetchers/protocol.py
M cmk/utils/type_defs/protocol.py
Log Message:
-----------
Protocol: Do not unnecessary build temporary bytes
Users may now either call `bytes()` on the Protocol or iterate over it.
`bytes()` instantiates a new `bytes()` object, whereas iteration
does not. Note that `__len__()` calls `bytes()` by default and
should be overriden in cases where it matters.
Change-Id: I4fd2491611890c7a501509df5bd162a68b1c5001