mercurial/util.py
changeset 32816 1b25c648d5b7
parent 32772 7ad95626f6a7
child 32886 19b0fd4b5570
equal deleted inserted replaced
32815:15e85dded933 32816:1b25c648d5b7
  1515             stat = os.stat(path)
  1515             stat = os.stat(path)
  1516         except OSError as err:
  1516         except OSError as err:
  1517             if err.errno != errno.ENOENT:
  1517             if err.errno != errno.ENOENT:
  1518                 raise
  1518                 raise
  1519             stat = None
  1519             stat = None
       
  1520         return cls(stat)
       
  1521 
       
  1522     @classmethod
       
  1523     def fromfp(cls, fp):
       
  1524         stat = os.fstat(fp.fileno())
  1520         return cls(stat)
  1525         return cls(stat)
  1521 
  1526 
  1522     __hash__ = object.__hash__
  1527     __hash__ = object.__hash__
  1523 
  1528 
  1524     def __eq__(self, old):
  1529     def __eq__(self, old):