summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-03-13 09:29:18 +1100
committerDamien George <damien@micropython.org>2023-04-27 18:03:06 +1000
commite160fe7bc64212a3ce56f5478f208e2b4d343a8b (patch)
treeee5ef41a23a91931352d1b3aa8ddbcc1bc8c9558 /tools/pyboard.py
parente131b53fdfd062699766012165cb2859ffd596ec (diff)
downloadmicropython-e160fe7bc64212a3ce56f5478f208e2b4d343a8b.tar.gz
micropython-e160fe7bc64212a3ce56f5478f208e2b4d343a8b.zip
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 <damien@micropython.org>
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py8
1 files 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: