From: Jeremy Hylton Date: Thu, 4 Apr 2002 21:02:24 +0000 (+0000) Subject: Replace use of apply() with extended call syntax. X-Git-Tag: v2.3c1~6128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f32e45912594fe11bfc0e9d86ad1995c7b14a06d;p=thirdparty%2FPython%2Fcpython.git Replace use of apply() with extended call syntax. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 96cc9cc77c2e..6bbfbabd589b 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