mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Use string.replace instead of regsub.[g]sub.
This commit is contained in:
parent
b9b50eb7e0
commit
00f9fea288
5 changed files with 13 additions and 17 deletions
|
|
@ -38,7 +38,6 @@
|
|||
import socket
|
||||
import select
|
||||
import string
|
||||
import regsub
|
||||
|
||||
# Tunable parameters
|
||||
DEBUGLEVEL = 0
|
||||
|
|
@ -185,7 +184,7 @@ def write(self, buffer):
|
|||
|
||||
"""
|
||||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue