mercurial/bundlerepo.py
changeset 2176 9b42304d9896
parent 2129 e5f5c21f4169
child 2256 4b71f37cbdb7
--- a/mercurial/bundlerepo.py	Tue Apr 25 23:28:40 2006 +0200
+++ b/mercurial/bundlerepo.py	Tue May 02 14:30:00 2006 -0700
@@ -160,7 +160,7 @@
     def __init__(self, ui, path, bundlename):
         localrepo.localrepository.__init__(self, ui, path)
         f = open(bundlename, "rb")
-        s = os.fstat(f.fileno())
+        s = util.fstat(f)
         self.bundlefile = f
         header = self.bundlefile.read(6)
         if not header.startswith("HG"):