From 9c006d1ecc0a87eaa1b4d7daf975155f0a976c31 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 24 May 2022 19:59:57 +0200 Subject: [PATCH] Please pylint. --- pymodbus/framer/rtu_framer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pymodbus/framer/rtu_framer.py b/pymodbus/framer/rtu_framer.py index 2a73f78418..519c9c9743 100644 --- a/pymodbus/framer/rtu_framer.py +++ b/pymodbus/framer/rtu_framer.py @@ -131,8 +131,7 @@ def isFrameReady(self): :returns: True if ready, False otherwise """ - size = self._header.get('len', 0) - if size == 0 and len(self._buffer) > self._hsize: + if (size := self._header.get('len', 0)) == 0 and len(self._buffer) > self._hsize: try: size = self.populateHeader() except IndexError: