summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-04-04 21:02:24 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-04-04 21:02:24 (GMT)
commitf32e45912594fe11bfc0e9d86ad1995c7b14a06d (patch)
treea9358c63f37a5480265e4ac7a111080c932d9d6d /Lib
parenta2c2595024073f474a4490be5cbfe87b9fe1ce42 (diff)
downloadcpython-f32e45912594fe11bfc0e9d86ad1995c7b14a06d.zip
cpython-f32e45912594fe11bfc0e9d86ad1995c7b14a06d.tar.gz
cpython-f32e45912594fe11bfc0e9d86ad1995c7b14a06d.tar.bz2
Replace use of apply() with extended call syntax.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncore.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 96cc9cc..6bbfbab 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -319,6 +319,7 @@ class dispatcher:
raise socket.error, err
def accept (self):
+ # XXX can return either an address pair or None
try:
conn, addr = self.socket.accept()
return conn, addr
@@ -521,10 +522,10 @@ if os.name == 'posix':
self.fd = fd
def recv (self, *args):
- return apply (os.read, (self.fd,)+args)
+ return os.read(self.fd, *args)
def send (self, *args):
- return apply (os.write, (self.fd,)+args)
+ return os.write(self.fd, *args)
read = recv
write = send