Commit c3e49e1d authored by Per Cederqvist's avatar Per Cederqvist

Use string.replace instead of regsub.gsub.

parent ea26d4ef
......@@ -25,7 +25,6 @@ import socket
import select
import sys
import string
import regsub
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
......@@ -64,7 +63,7 @@ while 1:
if d[-1] == '\n':
d = d[:-1]
needpfx = 1
line = line + regsub.gsub("\n", "\n" + pfx, d)
line = line + string.replace(d, "\n", "\n" + pfx)
if needpfx == 1:
line = line + "\n"
sys.stdout.write(line)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment