diff -r e5f5c21f4169 -r 9b42304d9896 mercurial/bundlerepo.py --- 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"):