From e160fe7bc64212a3ce56f5478f208e2b4d343a8b Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 13 Mar 2023 09:29:18 +1100 Subject: [PATCH] tools/pyboard.py: Rename ProcessPtyToTerminal member "ser" to "serial". So that this file doesn't need to be excluded from codespell. Signed-off-by: Damien George --- tools/pyboard.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/pyboard.py b/tools/pyboard.py index c0bb778a32..10cb764b91 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -245,7 +245,7 @@ class ProcessPtyToTerminal: pty = m.group() # rtscts, dsrdtr params are to workaround pyserial bug: # http://stackoverflow.com/questions/34831131/pyserial-does-not-play-well-with-virtual-port - self.ser = serial.Serial(pty, interCharTimeout=1, rtscts=True, dsrdtr=True) + self.serial = serial.Serial(pty, interCharTimeout=1, rtscts=True, dsrdtr=True) def close(self): import signal @@ -253,13 +253,13 @@ class ProcessPtyToTerminal: os.killpg(os.getpgid(self.subp.pid), signal.SIGTERM) def read(self, size=1): - return self.ser.read(size) + return self.serial.read(size) def write(self, data): - return self.ser.write(data) + return self.serial.write(data) def inWaiting(self): - return self.ser.inWaiting() + return self.serial.inWaiting() class Pyboard: