diff options
author | Mats Wichmann <mats@linux.com> | 2019-09-16 13:58:26 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-10-22 15:16:27 (GMT) |
commit | 69eb89f5055875a0af1b8329144eb61c04481105 (patch) | |
tree | 625ac2a724ebd698bf7a2148849f5f2ac1a22572 /src/engine/SCons | |
parent | c6ca3bdd2ad8e9a6ceea398934d84def9ba7c497 (diff) | |
download | SCons-69eb89f5055875a0af1b8329144eb61c04481105.zip SCons-69eb89f5055875a0af1b8329144eb61c04481105.tar.gz SCons-69eb89f5055875a0af1b8329144eb61c04481105.tar.bz2 |
Remove deprecated Builder keywords
overrides= and scanner= have been deprecated for over a decade.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'src/engine/SCons')
-rw-r--r-- | src/engine/SCons/Builder.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/engine/SCons/Builder.py b/src/engine/SCons/Builder.py index 4352d7a..e3fb396 100644 --- a/src/engine/SCons/Builder.py +++ b/src/engine/SCons/Builder.py @@ -396,16 +396,13 @@ class BuilderBase(object): self.env = env self.single_source = single_source if 'overrides' in overrides: - SCons.Warnings.warn(SCons.Warnings.DeprecatedBuilderKeywordsWarning, - "The \"overrides\" keyword to Builder() creation has been deprecated;\n" +\ - "\tspecify the items as keyword arguments to the Builder() call instead.") - overrides.update(overrides['overrides']) - del overrides['overrides'] + msg = "The \"overrides\" keyword to Builder() creation has been removed;\n" +\ + "\tspecify the items as keyword arguments to the Builder() call instead." + raise TypeError(msg) if 'scanner' in overrides: - SCons.Warnings.warn(SCons.Warnings.DeprecatedBuilderKeywordsWarning, - "The \"scanner\" keyword to Builder() creation has been deprecated;\n" - "\tuse: source_scanner or target_scanner as appropriate.") - del overrides['scanner'] + msg = "The \"scanner\" keyword to Builder() creation has been removed;\n" +\ + "\tuse: source_scanner or target_scanner as appropriate." + raise TypeError(msg) self.overrides = overrides self.set_suffix(suffix) |