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.
Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHGffa3026d4196: cleanup: use stat_result[stat.ST_MTIME] instead of stat_result.st_mtime
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/cext/osutil.c | ||
---|---|---|
126 | Is this valid for Python 2? The passed argument will likely be a PyInt on Python 2. I thought PyLong_AsLong only operates on int types? |
mercurial/cext/osutil.c | ||
---|---|---|
126 | Seems to (I also could have sworn int and long became the same thing in 2.6), as it passes the entire testsuite. |
Comment Actions
Queued, thanks.
Maybe we'll need to update cffi code as a follow-up.
mercurial/chgserver.py | ||
---|---|---|
552 | Fixed name conflicts and st_mtime oversight. |
Is this valid for Python 2? The passed argument will likely be a PyInt on Python 2. I thought PyLong_AsLong only operates on int types?