Minor changes.

This commit is contained in:
Jeremy Fincher 2003-04-09 15:13:51 +00:00
parent 8c9811ea05
commit c849eda6ce

View File

@ -87,14 +87,12 @@ class AsyncoreDriver(asynchat.async_chat, object):
def writable(self): def writable(self):
#debug.methodNamePrintf(self, 'writable') #debug.methodNamePrintf(self, 'writable')
while self.connected and self.irc: while self.connected:
m = self.irc.takeMsg() m = self.irc.takeMsg()
if m: if m:
self.push(str(m)) self.push(str(m))
else: else:
break break
#ret = asynchat.async_chat.writable(self)
#debug.printf(str(ret))
return asynchat.async_chat.writable(self) return asynchat.async_chat.writable(self)
def handle_error(self): def handle_error(self):
@ -121,10 +119,6 @@ class AsyncoreDriver(asynchat.async_chat, object):
'Uncaught Irc object exception: %s' % debug.exnToString(e))) 'Uncaught Irc object exception: %s' % debug.exnToString(e)))
self.buffer = '' self.buffer = ''
def handle_connect(self):
#debug.methodNamePrintf(self, 'handle_connect')
pass
def handle_close(self): def handle_close(self):
#debug.methodNamePrintf(self, 'handle_close') #debug.methodNamePrintf(self, 'handle_close')
self.scheduleReconnect() self.scheduleReconnect()