Return fileno from clients, for use in select.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 22 Dec 2011 05:11:31 +0000 (06:11 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 22 Dec 2011 05:11:31 +0000 (06:11 +0100)
pdm/cli.py

index d88ebbd..bb2bbf5 100644 (file)
@@ -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")