diff -r e5f5c21f4169 -r 9b42304d9896 mercurial/sshrepo.py --- a/mercurial/sshrepo.py Tue Apr 25 23:28:40 2006 +0200 +++ b/mercurial/sshrepo.py Tue May 02 14:30:00 2006 -0700 @@ -57,7 +57,7 @@ def readerr(self): while 1: - size = os.fstat(self.pipee.fileno())[stat.ST_SIZE] + size = util.fstat(self.pipee).st_size if size == 0: break l = self.pipee.readline() if not l: break