summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLowell Alleman <lowell@kintyre.co>2018-10-24 10:25:23 -0400
committerLowell Alleman <lowell@kintyre.co>2018-10-24 10:25:23 -0400
commit2e276464285df6de830844c5b3abbc3dae8d8298 (patch)
treec99dcd80ac0513f9aa5746da5c02b4fa767af915
parenta27715f322bb08b1fccffebab776c94df50057e9 (diff)
downloadpyserial-git-2e276464285df6de830844c5b3abbc3dae8d8298.tar.gz
Fixed transposed RFC 2217 (was 2271)
Updated docs and comments incorrectly referencing 2271 (SNMP). No code change.
-rw-r--r--documentation/url_handlers.rst2
-rw-r--r--serial/rfc2217.py2
-rw-r--r--serial/urlhandler/protocol_rfc2217.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/documentation/url_handlers.rst b/documentation/url_handlers.rst
index b4f0da7..5cc1aaa 100644
--- a/documentation/url_handlers.rst
+++ b/documentation/url_handlers.rst
@@ -48,7 +48,7 @@ Supported options in the URL are:
- ``timeout=<value>``: Change network timeout (default 3 seconds). This is
useful when the server takes a little more time to send its answers. The
- timeout applies to the initial Telnet / :rfc:`2271` negotiation as well
+ timeout applies to the initial Telnet / :rfc:`2217` negotiation as well
as changing port settings or control line change commands.
- ``logging={debug|info|warning|error}``: Prints diagnostic messages (not
diff --git a/serial/rfc2217.py b/serial/rfc2217.py
index d962c1e..c0c3ae3 100644
--- a/serial/rfc2217.py
+++ b/serial/rfc2217.py
@@ -483,7 +483,7 @@ class Serial(SerialBase):
if self.logger:
self.logger.info("Negotiated options: {}".format(self._telnet_options))
- # fine, go on, set RFC 2271 specific things
+ # fine, go on, set RFC 2217 specific things
self._reconfigure_port()
# all things set up get, now a clean start
if not self._dsrdtr:
diff --git a/serial/urlhandler/protocol_rfc2217.py b/serial/urlhandler/protocol_rfc2217.py
index 8be310f..ebeec3a 100644
--- a/serial/urlhandler/protocol_rfc2217.py
+++ b/serial/urlhandler/protocol_rfc2217.py
@@ -1,6 +1,6 @@
#! python
#
-# This is a thin wrapper to load the rfc2271 implementation.
+# This is a thin wrapper to load the rfc2217 implementation.
#
# This file is part of pySerial. https://github.com/pyserial/pyserial
# (C) 2011 Chris Liechti <cliechti@gmx.net>