Merge branch 'master' into python3
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 22 Dec 2011 05:12:45 +0000 (06:12 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 22 Dec 2011 05:12:45 +0000 (06:12 +0100)
1  2 
pdm/cli.py

diff --cc pdm/cli.py
@@@ -47,9 -47,12 +47,12 @@@ 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")
 +            p = self.buf.find(b"\n")
              if p >= 0:
                  ret = self.buf[:p]
                  self.buf = self.buf[p + 1:]