]> granicus.if.org Git - python/commitdiff
[Part of patch #909005] Added map parameter for file_dispatcher and dispatcher_with_send
authorAndrew M. Kuchling <amk@amk.ca>
Sun, 21 Mar 2004 20:03:18 +0000 (20:03 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sun, 21 Mar 2004 20:03:18 +0000 (20:03 +0000)
Lib/asyncore.py

index 04253dfa55fe14f7af818461b32db71ad30bebb9..69318c88b9bf3b093ea1237439f9f901f3a2529f 100644 (file)
@@ -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)