HomePhabricator

osutil: implement minimal __getitem__ compatibility on our custom listdir type

Authored by durin42.

Description

osutil: implement minimal getitem compatibility on our custom listdir type

We previously declined to do this, but the removal of the deprecated
os.stat_float_times() method in Python 3.7 forces our hand.

Differential Revision: https://phab.mercurial-scm.org/D2695