From ffbc9805e61ccd749b43fbf8d4e083a52147b5e0 Mon Sep 17 00:00:00 2001 From: wangbiao Date: Thu, 8 May 2025 11:59:17 +0900 Subject: [PATCH] fix build error with scons-4.4.0 version Change-Id: Idcf904741771ede604c1224df62d204ffa7f6f9e Signed-off-by: wangbiao --- build_common/external_libs.scons | 2 +- build_common/tools/UnpackAll.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build_common/external_libs.scons b/build_common/external_libs.scons index 1f0c42f91..1ea6160ff 100755 --- a/build_common/external_libs.scons +++ b/build_common/external_libs.scons @@ -21,7 +21,7 @@ # ## import os, subprocess -import urllib, urlparse +import urllib.request, urllib.error, urllib.parse, urllib.parse import SCons.Errors Import('env') diff --git a/build_common/tools/UnpackAll.py b/build_common/tools/UnpackAll.py index fd9099540..9788992d3 100755 --- a/build_common/tools/UnpackAll.py +++ b/build_common/tools/UnpackAll.py @@ -99,7 +99,7 @@ import SCons.Util # enables Scons warning for this builder -class UnpackWarning(SCons.Warnings.Warning) : +class UnpackWarning(SCons.Warnings.SConsWarning) : pass SCons.Warnings.enableWarningClass(UnpackWarning) -- 2.34.1