diff options
author | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 (GMT) |
commit | 00f9fea288baed5a37e3866b492185b5045d30d4 (patch) | |
tree | 8ecf28e2d8907d52e18f10a66e582d5d3bda92d7 /Lib/telnetlib.py | |
parent | b9b50eb7e09ec1b28e8549c2c90d7ed5748b3173 (diff) | |
download | cpython-00f9fea288baed5a37e3866b492185b5045d30d4.zip cpython-00f9fea288baed5a37e3866b492185b5045d30d4.tar.gz cpython-00f9fea288baed5a37e3866b492185b5045d30d4.tar.bz2 |
Use string.replace instead of regsub.[g]sub.
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r-- | Lib/telnetlib.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index 4595426..0f20fb4 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py @@ -38,7 +38,6 @@ To do: import socket import select import string -import regsub # Tunable parameters DEBUGLEVEL = 0 @@ -185,7 +184,7 @@ class Telnet: """ if IAC in buffer: - buffer = regsub.gsub(IAC, IAC+IAC, buffer) + buffer = string.replace(buffer, IAC, IAC+IAC) self.sock.send(buffer) def read_until(self, match, timeout=None): |