diff options
Diffstat (limited to 'serial')
-rw-r--r-- | serial/rfc2217.py | 2 | ||||
-rw-r--r-- | serial/threaded/__init__.py | 2 | ||||
-rw-r--r-- | serial/tools/hexlify_codec.py | 2 | ||||
-rw-r--r-- | serial/tools/list_ports_osx.py | 2 | ||||
-rw-r--r-- | serial/tools/list_ports_windows.py | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/serial/rfc2217.py b/serial/rfc2217.py index 2ae188e..0b5a4eb 100644 --- a/serial/rfc2217.py +++ b/serial/rfc2217.py @@ -1,6 +1,6 @@ #! python # -# This module implements a RFC2217 compatible client. RF2217 descibes a +# This module implements a RFC2217 compatible client. RF2217 describes a # protocol to access serial ports over TCP/IP and allows setting the baud rate, # modem control lines etc. # diff --git a/serial/threaded/__init__.py b/serial/threaded/__init__.py index b8940b6..fa805ef 100644 --- a/serial/threaded/__init__.py +++ b/serial/threaded/__init__.py @@ -140,7 +140,7 @@ class LineReader(Packetizer): def write_line(self, text): """ Write text to the transport. ``text`` is a Unicode string and the encoding - is applied before sending ans also the newline is append. + is applied before sending and also the newline is append. """ # + is not the best choice but bytes does not support % or .format in py3 and we want a single write call self.transport.write(text.encode(self.ENCODING, self.UNICODE_HANDLING) + self.TERMINATOR) diff --git a/serial/tools/hexlify_codec.py b/serial/tools/hexlify_codec.py index bd8f6b0..d534743 100644 --- a/serial/tools/hexlify_codec.py +++ b/serial/tools/hexlify_codec.py @@ -9,7 +9,7 @@ """\ Python 'hex' Codec - 2-digit hex with spaces content transfer encoding. -Encode and decode may be a bit missleading at first sight... +Encode and decode may be a bit misleading at first sight... The textual representation is a hex dump: e.g. "40 41" The "encoded" data of this is the binary form, e.g. b"@A" diff --git a/serial/tools/list_ports_osx.py b/serial/tools/list_ports_osx.py index 51b4e8c..7480501 100644 --- a/serial/tools/list_ports_osx.py +++ b/serial/tools/list_ports_osx.py @@ -277,7 +277,7 @@ def comports(include_links=False): if not usb_device: usb_device = GetParentDeviceByType(service, "IOUSBDevice") if usb_device: - # fetch some useful informations from properties + # fetch some useful information from properties info.vid = get_int_property(usb_device, "idVendor", kCFNumberSInt16Type) info.pid = get_int_property(usb_device, "idProduct", kCFNumberSInt16Type) info.serial_number = get_string_property(usb_device, kUSBSerialNumberString) diff --git a/serial/tools/list_ports_windows.py b/serial/tools/list_ports_windows.py index 0b4a5b1..0c6956f 100644 --- a/serial/tools/list_ports_windows.py +++ b/serial/tools/list_ports_windows.py @@ -211,7 +211,7 @@ def get_parent_serial_number(child_devinst, child_vid, child_pid, depth=0, last_ # store what we found as a fallback for malformed serial values up the chain found_serial_number = serial_number - # Check that the USB serial number only contains alpha-numeric characters. It may be a windows + # Check that the USB serial number only contains alphanumeric characters. It may be a windows # device ID (ephemeral ID). if serial_number and not re.match(r'^\w+$', serial_number): serial_number = None @@ -335,7 +335,7 @@ def iterate_comports(): if m.group(5): bInterfaceNumber = int(m.group(5)) - # Check that the USB serial number only contains alpha-numeric characters. It + # Check that the USB serial number only contains alphanumeric characters. It # may be a windows device ID (ephemeral ID) for composite devices. if m.group(7) and re.match(r'^\w+$', m.group(7)): info.serial_number = m.group(7) |