@@ -277,7 +277,8 @@ class PosixSerial(SerialBase):
277
277
"""\
278
278
Serial port class POSIX implementation. Serial port configuration is
279
279
done with termios and fcntl. Runs on Linux and many other Un*x like
280
- systems."""
280
+ systems.
281
+ """
281
282
282
283
def open (self ):
283
284
"""\
@@ -372,7 +373,7 @@ def _reconfigurePort(self):
372
373
cflag |= TERMIOS .CS5
373
374
else :
374
375
raise ValueError ('Invalid char len: %r' % self ._bytesize )
375
- # setup stopbits
376
+ # setup stop bits
376
377
if self ._stopbits == STOPBITS_ONE :
377
378
cflag &= ~ (TERMIOS .CSTOPB )
378
379
elif self ._stopbits == STOPBITS_ONE_POINT_FIVE :
@@ -423,7 +424,7 @@ def _reconfigurePort(self):
423
424
# XXX should there be a warning if setting up rtscts (and xonxoff etc) fails??
424
425
425
426
# 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"
427
428
if vmin < 0 or vmin > 255 :
428
429
raise ValueError ('Invalid vmin: %r ' % vmin )
429
430
cc [TERMIOS .VMIN ] = vmin
@@ -660,9 +661,9 @@ def flowControlOut(self, enable):
660
661
termios .tcflow (self .fd , TERMIOS .TCOOFF )
661
662
662
663
663
- # assemble Serial class with the platform specifc implementation and the base
664
+ # assemble Serial class with the platform specific implementation and the base
664
665
# 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
666
667
try :
667
668
import io
668
669
except ImportError :
@@ -676,8 +677,8 @@ class Serial(PosixSerial, io.RawIOBase):
676
677
677
678
class PosixPollSerial (Serial ):
678
679
"""\
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
681
682
disconnecting while it's in use (e.g. USB-serial unplugged).
682
683
"""
683
684
0 commit comments