From 015ffd1905dc704c835a9ddc4344388ac7c0da32 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 8 Feb 2019 16:56:40 +0000 Subject: [PATCH] Bug 1526062 - Add missing imports for Exception. r=nalexander Depends on D19109 Differential Revision: https://phabricator.services.mozilla.com/D19110 --HG-- extra : moz-landing-system : lando --- build/moz.configure/toolchain.configure | 1 + build/moz.configure/windows.configure | 1 + 2 files changed, 2 insertions(+) diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure index 3fa2bfd4c5a2..0e3126d3fe87 100755 --- a/build/moz.configure/toolchain.configure +++ b/build/moz.configure/toolchain.configure @@ -442,6 +442,7 @@ def try_preprocess(compiler, language, source): @imports(_from='mozbuild.configure.constants', _import='OS_preprocessor_checks') @imports(_from='textwrap', _import='dedent') +@imports(_from='__builtin__', _import='Exception') def get_compiler_info(compiler, language): '''Returns information about the given `compiler` (command line in the form of a list or tuple), in the given `language`. diff --git a/build/moz.configure/windows.configure b/build/moz.configure/windows.configure index 857c84a913ab..2f268ca0b871 100644 --- a/build/moz.configure/windows.configure +++ b/build/moz.configure/windows.configure @@ -97,6 +97,7 @@ def valid_windows_sdk_dir_result(value): @depends(c_compiler, windows_sdk_dir, valid_windows_version, 'WINDOWSSDKDIR') @checking('for Windows SDK', valid_windows_sdk_dir_result) @imports(_from='__builtin__', _import='sorted') +@imports(_from='__builtin__', _import='Exception') @imports(_from='textwrap', _import='dedent') def valid_windows_sdk_dir(compiler, windows_sdk_dir, target_version, windows_sdk_dir_env):