summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 05:07:04 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 05:07:04 (GMT)
commitb49f4a4b15228799aad77ba569971a23d21cc4f7 (patch)
treefca74bb59fa56fde8e2a23f209b41157172977d9 /Lib/asyncore.py
parent20e4423adef209d2260fd952533dc2360e2d257e (diff)
downloadcpython-b49f4a4b15228799aad77ba569971a23d21cc4f7.zip
cpython-b49f4a4b15228799aad77ba569971a23d21cc4f7.tar.gz
cpython-b49f4a4b15228799aad77ba569971a23d21cc4f7.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index f177692..145da58 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -49,7 +49,6 @@ sophisticated high-performance network servers and clients a snap.
import exceptions
import select
import socket
-import string
import sys
import os
@@ -219,7 +218,7 @@ class dispatcher:
status.append ('%s:%d' % self.addr)
return '<%s %s at %x>' % (
self.__class__.__name__,
- string.join (status, ' '),
+ ' '.join (status),
id(self)
)
except:
@@ -480,13 +479,7 @@ def compact_traceback ():
del tb
file, function, line = tbinfo[-1]
- info = '[' + string.join (
- map (
- lambda x: string.join (x, '|'),
- tbinfo
- ),
- '] ['
- ) + ']'
+ info = '[' + '] ['.join(map(lambda x: '|'.join(x), tbinfo)) + ']'
return (file, function, line), t, v, info
def close_all (map=None):