equal
deleted
inserted
replaced
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): |