equal
deleted
inserted
replaced
1454 __hash__ = object.__hash__ |
1454 __hash__ = object.__hash__ |
1455 |
1455 |
1456 def __eq__(self, old): |
1456 def __eq__(self, old): |
1457 try: |
1457 try: |
1458 # if ambiguity between stat of new and old file is |
1458 # if ambiguity between stat of new and old file is |
1459 # avoided, comparision of size, ctime and mtime is enough |
1459 # avoided, comparison of size, ctime and mtime is enough |
1460 # to exactly detect change of a file regardless of platform |
1460 # to exactly detect change of a file regardless of platform |
1461 return (self.stat.st_size == old.stat.st_size and |
1461 return (self.stat.st_size == old.stat.st_size and |
1462 self.stat.st_ctime == old.stat.st_ctime and |
1462 self.stat.st_ctime == old.stat.st_ctime and |
1463 self.stat.st_mtime == old.stat.st_mtime) |
1463 self.stat.st_mtime == old.stat.st_mtime) |
1464 except AttributeError: |
1464 except AttributeError: |