commit 3ceca4002d238c37211adcf88224938b15a5f620
parent e6da532f30aee49ab0beab739728333dd0375109
Author: Tom Marble <tmarble@info9.net>
Date: Tue, 25 Nov 2025 18:57:32 +0000
Bug 2001798 resolves No module named 'yaml' r=jmaher
Signed-off-by: Tom Marble <tmarble@info9.net>
Differential Revision: https://phabricator.services.mozilla.com/D274036
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testing/mozbase/mozinfo/mozinfo/platforminfo.py b/testing/mozbase/mozinfo/mozinfo/platforminfo.py
@@ -7,8 +7,6 @@ import os
# ruff linter deprecates Dict required for Python 3.8 compatibility
from typing import Any, Dict, Optional # noqa UP035
-import yaml
-
DictAny = Dict[str, Any] # noqa UP006
DictStr = Dict[str, str] # noqa UP006
OptTestSettings = Optional[DictAny]
@@ -177,6 +175,8 @@ class PlatformInfo:
return build_type
def get_variant_data(self):
+ import yaml
+
if PlatformInfo.variant_data:
return PlatformInfo.variant_data