From 9928d247b3a08eeede8b55fdef5e503d6c49b58b Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 22 Dec 2011 06:11:31 +0100 Subject: [PATCH] Return fileno from clients, for use in select. --- pdm/cli.py | 3 +++ 1 file changed, 3 insertions(+) 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") -- 2.11.0