summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-03-21 20:03:18 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-03-21 20:03:18 (GMT)
commit67867eaf8ceca3d061194b7819832aae05202c8c (patch)
tree187f7089db7bbb6d8c173094d43253f11af5eb94 /Lib/asyncore.py
parent174bdbc999e59363739b1127b0ced4fa8e25b3dc (diff)
downloadcpython-67867eaf8ceca3d061194b7819832aae05202c8c.zip
cpython-67867eaf8ceca3d061194b7819832aae05202c8c.tar.gz
cpython-67867eaf8ceca3d061194b7819832aae05202c8c.tar.bz2
[Part of patch #909005] Added map parameter for file_dispatcher and dispatcher_with_send
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 04253df..69318c8 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -419,8 +419,8 @@ class dispatcher:
class dispatcher_with_send(dispatcher):
- def __init__(self, sock=None):
- dispatcher.__init__(self, sock)
+ def __init__(self, sock=None, map=None):
+ dispatcher.__init__(self, sock, map)
self.out_buffer = ''
def initiate_send(self):
@@ -510,8 +510,8 @@ if os.name == 'posix':
class file_dispatcher(dispatcher):
- def __init__(self, fd):
- dispatcher.__init__(self)
+ def __init__(self, fd, map=None):
+ dispatcher.__init__(self, None, map)
self.connected = True
# set it to non-blocking mode
flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)