summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-13 14:28:05 +0100
committerGitHub <noreply@github.com>2020-02-13 14:28:05 +0100
commitdcfe44f4479ddbf3518d3e753fbf242845402ae4 (patch)
tree08e9b17099079836ffae47c4cf234d0bd115c909 /SConstruct
parent835406cf04f0200a0504ae171964c687c559eb1e (diff)
parent54ac8eaba661a599983ae4774113d1a15cfa461a (diff)
Merge pull request #36175 from akien-mga/remove-more-deprecated-stuff
Remove deprecated methods and code
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct12
1 files changed, 1 insertions, 11 deletions
diff --git a/SConstruct b/SConstruct
index 6713b75fc2..2b368f7b19 100644
--- a/SConstruct
+++ b/SConstruct
@@ -418,17 +418,7 @@ if selected_platform in platform_list:
sys.path.insert(0, tmppath)
env.current_module = x
import config
- # can_build changed number of arguments between 3.0 (1) and 3.1 (2),
- # so try both to preserve compatibility for 3.0 modules
- can_build = False
- try:
- can_build = config.can_build(env, selected_platform)
- except TypeError:
- print("Warning: module '%s' uses a deprecated `can_build` "
- "signature in its config.py file, it should be "
- "`can_build(env, platform)`." % x)
- can_build = config.can_build(selected_platform)
- if can_build:
+ if config.can_build(env, selected_platform):
config.configure(env)
env.module_list.append(x)