aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch
blob: b1a790219ed8cc5a53b4ca69d2ccde72444c96b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 885aabdb313685405737112dcb7d7774eee6d879 Mon Sep 17 00:00:00 2001
From: Thomas Berg <merlin66b@gmail.com>
Date: Thu, 19 Oct 2017 14:02:21 -0500
Subject: [PATCH] SConscript: Support python2 print statements

This fixes a regression introduced in scons-3.0.0, where
SConscripts containing python 2 print statements would cause
syntax errors even when executing scons with python 2.7.

This ensures backward compatibility, allowing users to build
legacy code with scons-3.0.0 without having to patch it.

Taken from
https://github.com/SConsProject/scons/commit/2e0de3c55f22b3eaa7767b69740b898f3d2f46bf

Upstream-Status: Accepted

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
---
 engine/SCons/Script/SConscript.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/engine/SCons/Script/SConscript.py b/engine/SCons/Script/SConscript.py
index bc05540..332d1fa 100644
--- a/engine/SCons/Script/SConscript.py
+++ b/engine/SCons/Script/SConscript.py
@@ -5,8 +5,6 @@ files.
 
 """
 
-from __future__ import print_function
-
 #
 # Copyright (c) 2001 - 2017 The SCons Foundation
 #
-- 
2.7.4