Also use %d since we know mtime is numeric.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/hgweb/common.py | ||
---|---|---|
211 | It seems we are depending on os.stat_float_times(False). But that is deprecated in Python 3. If the API gets removed, mtime might be a float. |
Comment Actions
I need to brush off my static immutable series so we can do something sensible with caching.
The reliance on stat_float_times() is a bit concerning. But Python 3 support is still very much a work in progress and we can fix this issue later. It would be nice to have a TODO to track it though.
It seems we are depending on os.stat_float_times(False). But that is deprecated in Python 3. If the API gets removed, mtime might be a float.