Commit 67867eaf authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Part of patch #909005] Added map parameter for file_dispatcher and dispatcher_with_send

parent 174bdbc9
...@@ -419,8 +419,8 @@ class dispatcher: ...@@ -419,8 +419,8 @@ class dispatcher:
class dispatcher_with_send(dispatcher): class dispatcher_with_send(dispatcher):
def __init__(self, sock=None): def __init__(self, sock=None, map=None):
dispatcher.__init__(self, sock) dispatcher.__init__(self, sock, map)
self.out_buffer = '' self.out_buffer = ''
def initiate_send(self): def initiate_send(self):
...@@ -510,8 +510,8 @@ if os.name == 'posix': ...@@ -510,8 +510,8 @@ if os.name == 'posix':
class file_dispatcher(dispatcher): class file_dispatcher(dispatcher):
def __init__(self, fd): def __init__(self, fd, map=None):
dispatcher.__init__(self) dispatcher.__init__(self, None, map)
self.connected = True self.connected = True
# set it to non-blocking mode # set it to non-blocking mode
flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0) flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment