Mercurial > public > mercurial-scm > hg
comparison mercurial/posix.py @ 36781:ffa3026d4196
cleanup: use stat_result[stat.ST_MTIME] instead of stat_result.st_mtime
The latter is floating point by default, and we've been doing
os.stat_float_times(False). Unfortunately, os.stat_float_times was
removed between Python 3.7.0a1 and 3.7.0b2, so we have to stop using
it.
Differential Revision: https://phab.mercurial-scm.org/D2696
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 05 Mar 2018 12:30:20 -0500 |
parents | 0cb09c322647 |
children | 0585337ea787 |
comparison
equal
deleted
inserted
replaced
36780:f3c314020beb | 36781:ffa3026d4196 |
---|---|
615 self.stat.st_dev == other.stat.st_dev and | 615 self.stat.st_dev == other.stat.st_dev and |
616 self.stat.st_nlink == other.stat.st_nlink and | 616 self.stat.st_nlink == other.stat.st_nlink and |
617 self.stat.st_uid == other.stat.st_uid and | 617 self.stat.st_uid == other.stat.st_uid and |
618 self.stat.st_gid == other.stat.st_gid and | 618 self.stat.st_gid == other.stat.st_gid and |
619 self.stat.st_size == other.stat.st_size and | 619 self.stat.st_size == other.stat.st_size and |
620 self.stat.st_mtime == other.stat.st_mtime and | 620 self.stat[stat.ST_MTIME] == other.stat[stat.ST_MTIME] and |
621 self.stat.st_ctime == other.stat.st_ctime) | 621 self.stat[stat.ST_CTIME] == other.stat[stat.ST_CTIME]) |
622 except AttributeError: | 622 except AttributeError: |
623 return False | 623 return False |
624 | 624 |
625 def __ne__(self, other): | 625 def __ne__(self, other): |
626 return not self == other | 626 return not self == other |