Bug 1592330 [wpt PR 19981] - Remove redundant variable assignment & sort them, a=testonly
authorSam Sneddon <me@gsnedders.com>
Mon, 04 Nov 2019 11:11:48 +0000
changeset 564751 75aca9e3bb068824cec87fd90fa49eeeb398707e
parent 564750 0907a4ea294c3f6fb50b73b96129252708fe8b0c
child 564752 82aa51d1f2af958d4d8789458be3495de452653f
push id12351
push userffxbld-merge
push dateMon, 02 Dec 2019 11:32:26 +0000
treeherdermozilla-beta@dba4410526a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1592330, 19981
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1592330 [wpt PR 19981] - Remove redundant variable assignment & sort them, a=testonly Automatic update from web-platform-tests Remove redundant variable assignment & sort them -- wpt-commits: fa4d010bf8f28fa37b7bd685cdaf873f29d71736 wpt-pr: 19981 Differential Revision: https://phabricator.services.mozilla.com/D53541
testing/web-platform/tests/tools/manifest/vcs.py
--- a/testing/web-platform/tests/tools/manifest/vcs.py
+++ b/testing/web-platform/tests/tools/manifest/vcs.py
@@ -273,22 +273,21 @@ def walk(root):
     that instead of lists of filenames and directory names, it yields
     lists of tuples of the form [(name, stat)] where stat is the result of
     os.stat for the file. That allows reusing the same stat data in the
     caller. It also always returns the dirpath relative to the root, with
     the root iself being returned as the empty string.
 
     Unlike os.walk the implementation is not recursive."""
 
-    listdir = os.listdir
     get_stat = os.stat
-    listdir = os.listdir
-    join = os.path.join
     is_dir = stat.S_ISDIR
     is_link = stat.S_ISLNK
+    join = os.path.join
+    listdir = os.listdir
     relpath = os.path.relpath
 
     root = os.path.abspath(root)
     stack = deque([(root, b"")])
 
     while stack:
         dir_path, rel_path = stack.popleft()
         try: