Rework prompt: add exception classes for errors and reload/quit

This commit is contained in:
nemunaire 2015-01-01 23:17:02 +01:00
commit fd6d9288f7
6 changed files with 89 additions and 19 deletions

View file

@ -69,6 +69,8 @@ class AbstractServer(io.IOBase):
if not hasattr(self, "_open") or self._open():
_rlist.append(self)
_xlist.append(self)
return True
return False
def close(self):
@ -82,6 +84,8 @@ class AbstractServer(io.IOBase):
_wlist.remove(self)
if self in _xlist:
_xlist.remove(self)
return True
return False
# Writes