mercurial/sshrepo.py
changeset 2176 9b42304d9896
parent 2046 d14497cbd668
child 2177 6886bc0b77af
--- a/mercurial/sshrepo.py
+++ b/mercurial/sshrepo.py
@@ -57,7 +57,7 @@ class sshrepository(remoterepository):
 
     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