Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Tom Prince de09f5861b Bug 1492128: Vendor pathlib2==2.3.2; r=firefox-build-system-reviewers,gps
Differential Revision: https://phabricator.services.mozilla.com/D10145

--HG--
extra : moz-landing-system : lando
2018-10-30 18:01:06 +00:00
Csoregi Natalia f00a0ea9cc Backed out 3 changesets (bug 1494069) for blocking 1498215. a=backout
Backed out changeset 9752f179b9c3 (bug 1494069)
Backed out changeset fe0fb280dbfc (bug 1494069)
Backed out changeset a2956764213e (bug 1494069)
2018-10-12 13:11:04 +03:00
Andrew Halberstadt 6bc809da2d Bug 1494069 - Vendor scandir==1.9.0 to third_party/python, r=davehunt
Scandir is a faster implementation of os.listdir since it caches file metadata
as it works. Using listdir and then calling things like os.path.isfile after
the fact will result in multiple system calls. Whereas with scandir, there will
only be a single system call per file.

Scandir is part of the stdlib in Python 3.6+, so the following can be used for
Python 2/3 compatible code:

    try
        from os import scandir, walk
    except ImportError:
        from scandir import scandir, walk

Differential Revision: https://phabricator.services.mozilla.com/D7738

--HG--
extra : moz-landing-system : lando
2018-10-10 19:21:07 +00:00