Commits

Anonymous committed 6a6dceb

don't need to return t/f anymore from write handler

Comments (0)

Files changed (2)

diesel/__init__.py

 import logmod
 log = logmod.log
 from logmod import Logger, LOGLVL_DEBUG, LOGLVL_INFO, LOGLVL_WARN, LOGLVL_ERR, LOGLVL_CRITICAL
-#from core import until, until_eol, bytes, Connection, ConnectionClosed, Loop, packet
-#from core import ClientConnectionError, ClientConnectionClosed
 import events
 from core import sleep, Loop, wait, fire, thread, until, Connection, ConnectionClosed
 from core import until_eol, send, count, call
                     code, s = e
                     if code in (errno.EAGAIN, errno.EINTR):
                         self.pipeline.backup(data)
-                        return True
+                        return 
                     self.shutdown(True)
                 else:
                     if bsent != len(data):
                         self.pipeline.backup(data[bsent:])
 
                     if not self.pipeline.empty:
-                        return True
+                        return 
                     else:
                         self.set_writable(False)