зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1630610 - Fix broken code. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D73154
This commit is contained in:
Родитель
c85192abc1
Коммит
118aa2368b
|
@ -75,20 +75,13 @@ class PerftestNotebook(object):
|
|||
elif isinstance(file_grouping, dict):
|
||||
# A dictionary of settings from an artifact_downloader instance
|
||||
# was provided here
|
||||
print("awljdlkwad")
|
||||
raise Exception(
|
||||
"Artifact downloader tooling is disabled for the time being."
|
||||
)
|
||||
elif isinstance(file_grouping, str):
|
||||
# Assume a path to files was given
|
||||
filepath = files
|
||||
|
||||
newf = [f for f in pathlib.Path(filepath).rglob("*.json")]
|
||||
if not newf:
|
||||
# Couldn't find any JSON files, so take all the files
|
||||
# in the directory
|
||||
newf = [f for f in pathlib.Path(filepath).rglob("*")]
|
||||
|
||||
filepath = file_grouping
|
||||
newf = [f.resolve().as_posix() for f in pathlib.Path(filepath).rglob("*")]
|
||||
files = newf
|
||||
else:
|
||||
raise Exception(
|
||||
|
|
Загрузка…
Ссылка в новой задаче