hgext/clang-format/__init__.py [17:43]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    cmdutil,
    error,
    extensions,
    localrepo,
    match,
    pycompat,
    scmutil,
)

OUR_DIR = os.path.dirname(__file__)
with open(os.path.join(OUR_DIR, "..", "bootstrap.py")) as f:
    exec(f.read())

from mozhg.util import is_firefox_repo


testedwith = b"4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3"
minimumhgversion = b"4.4"
buglink = b"https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox%20Build%20System&component=Lint%20and%20Formatting"  # noqa: E501


def find_python():
    for python_variant in ("py", "python3", "python"):
        if shutil.which(python_variant):
            return python_variant.encode("utf-8")

    raise error.Abort(b"Could not find a suitable Python to run `mach`!")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



hgext/js-format/__init__.py [17:43]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    cmdutil,
    error,
    extensions,
    localrepo,
    match,
    pycompat,
    scmutil,
)

OUR_DIR = os.path.dirname(__file__)
with open(os.path.join(OUR_DIR, "..", "bootstrap.py")) as f:
    exec(f.read())

from mozhg.util import is_firefox_repo


testedwith = b"4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3"
minimumhgversion = b"4.4"
buglink = b"https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox%20Build%20System&component=Lint%20and%20Formatting"  # noqa: E501


def find_python():
    for python_variant in ("py", "python3", "python"):
        if shutil.which(python_variant):
            return python_variant.encode("utf-8")

    raise error.Abort(b"Could not find a suitable Python to run `mach`!")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



