From: Fredrik Tolf Date: Thu, 22 Dec 2011 05:11:31 +0000 (+0100) Subject: Return fileno from clients, for use in select. X-Git-Tag: 0.1~3^2 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=9928d247b3a08eeede8b55fdef5e503d6c49b58b;p=pdm.git Return fileno from clients, for use in select. --- diff --git a/pdm/cli.py b/pdm/cli.py index d88ebbd..bb2bbf5 100644 --- a/pdm/cli.py +++ b/pdm/cli.py @@ -47,6 +47,9 @@ class client(object): def close(self): self.sk.close() + def fileno(self): + return self.sk.fileno() + def readline(self): while True: p = self.buf.find("\n")