Skip to content

Commit f0a81d4

Browse files
author
cliechti
committed
doc update
1 parent 4948588 commit f0a81d4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pyserial/serial/serialposix.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ class PosixSerial(SerialBase):
277277
"""\
278278
Serial port class POSIX implementation. Serial port configuration is
279279
done with termios and fcntl. Runs on Linux and many other Un*x like
280-
systems."""
280+
systems.
281+
"""
281282

282283
def open(self):
283284
"""\
@@ -372,7 +373,7 @@ def _reconfigurePort(self):
372373
cflag |= TERMIOS.CS5
373374
else:
374375
raise ValueError('Invalid char len: %r' % self._bytesize)
375-
# setup stopbits
376+
# setup stop bits
376377
if self._stopbits == STOPBITS_ONE:
377378
cflag &= ~(TERMIOS.CSTOPB)
378379
elif self._stopbits == STOPBITS_ONE_POINT_FIVE:
@@ -423,7 +424,7 @@ def _reconfigurePort(self):
423424
# XXX should there be a warning if setting up rtscts (and xonxoff etc) fails??
424425

425426
# buffer
426-
# vmin "minimal number of characters to be read. = for non blocking"
427+
# vmin "minimal number of characters to be read. 0 for non blocking"
427428
if vmin < 0 or vmin > 255:
428429
raise ValueError('Invalid vmin: %r ' % vmin)
429430
cc[TERMIOS.VMIN] = vmin
@@ -660,9 +661,9 @@ def flowControlOut(self, enable):
660661
termios.tcflow(self.fd, TERMIOS.TCOOFF)
661662

662663

663-
# assemble Serial class with the platform specifc implementation and the base
664+
# assemble Serial class with the platform specific implementation and the base
664665
# for file-like behavior. for Python 2.6 and newer, that provide the new I/O
665-
# library, derrive from io.RawIOBase
666+
# library, derive from io.RawIOBase
666667
try:
667668
import io
668669
except ImportError:
@@ -676,8 +677,8 @@ class Serial(PosixSerial, io.RawIOBase):
676677

677678
class PosixPollSerial(Serial):
678679
"""\
679-
Poll based read implementation. not all systems support poll properly.
680-
however this one has better handling of errors, such as a device
680+
Poll based read implementation. Not all systems support poll properly.
681+
However this one has better handling of errors, such as a device
681682
disconnecting while it's in use (e.g. USB-serial unplugged).
682683
"""
683684

0 commit comments

Comments
 (0)