Skip to content

Commit d68eb85

Browse files
Anutrixahochheiden
authored andcommitted
Bug 1970522 - Replaced 'json' with 'mozfile.json' in python/mach directory. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D253093
1 parent 227b85d commit d68eb85

File tree

7 files changed

+7
-3
lines changed

7 files changed

+7
-3
lines changed

build/mach_initialize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def initialize(topsrcdir, args=()):
140140
os.path.join(topsrcdir, module)
141141
for module in (
142142
os.path.join("python", "mach"),
143+
os.path.join("testing", "mozbase", "mozfile"),
143144
os.path.join("third_party", "python", "packaging"),
144145
os.path.join("third_party", "python", "filelock"),
145146
)

configure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
sys.path.insert(0, os.path.join(base_dir, "python", "mozboot"))
1717
sys.path.insert(0, os.path.join(base_dir, "python", "mozbuild"))
1818
sys.path.insert(0, os.path.join(base_dir, "third_party", "python", "packaging"))
19+
sys.path.insert(0, os.path.join(base_dir, "testing", "mozbase", "mozfile"))
1920
sys.path.insert(0, os.path.join(base_dir, "third_party", "python", "six"))
2021
sys.path.insert(0, os.path.join(base_dir, "third_party", "python", "looseversion"))
2122
sys.path.insert(0, os.path.join(base_dir, "third_party", "python", "filelock"))

python/mach/mach/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
# logging framework.
88

99
import codecs
10-
import json
1110
import logging
1211
import os
1312
import sys
1413
import time
1514

1615
import blessed
1716
from mozbuild.buildversion import mozilla_build_version
17+
from mozfile import json
1818
from packaging.version import Version
1919

2020
IS_WINDOWS = sys.platform.startswith("win")

python/mach/mach/site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import ast
99
import enum
1010
import functools
11-
import json
1211
import os
1312
import platform
1413
import shutil
@@ -24,6 +23,7 @@
2423
from typing import Callable, Optional
2524

2625
from filelock import FileLock, Timeout
26+
from mozfile import json
2727
from packaging.specifiers import SpecifierSet
2828

2929
from mach.requirements import (

python/mach/mach/telemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import configparser
66
import importlib.util
7-
import json
87
import os
98
import subprocess
109
import sys
@@ -15,6 +14,7 @@
1514
import requests
1615
from mozbuild.base import BuildEnvironmentNotFoundException, MozbuildObject
1716
from mozbuild.telemetry import filter_args
17+
from mozfile import json
1818
from mozversioncontrol import InvalidRepoPath, get_repository_object
1919

2020
from mach.config import ConfigSettings

python/mach/mach/test/test_site_activation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ def _activation_context():
315315
topsrcdir = Path(buildconfig.topsrcdir)
316316
required_mach_sys_paths = [
317317
topsrcdir / "python" / "mach",
318+
topsrcdir / "testing" / "mozbase" / "mozfile",
318319
topsrcdir / "third_party" / "python" / "filelock",
319320
topsrcdir / "third_party" / "python" / "packaging",
320321
topsrcdir / "third_party" / "python" / "pip",

python/mozperftest/mozperftest/runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def _activate_virtualenvs(flavor):
4646
os.path.join(SRC_ROOT, module)
4747
for module in (
4848
os.path.join("python", "mach"),
49+
os.path.join("testing", "mozbase", "mozfile"),
4950
os.path.join("third_party", "python", "packaging"),
5051
os.path.join("third_party", "python", "filelock"),
5152
)

0 commit comments

Comments
 (0)