summaryrefslogtreecommitdiffstats
path: root/SCons/Environment.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-01-12 14:48:33 (GMT)
committerMats Wichmann <mats@linux.com>2021-01-12 14:48:33 (GMT)
commitd3c6a4a199beff6e4d28725da9c0b0a052349359 (patch)
treea2945477ad09a708357c63137c015d667c1c93f2 /SCons/Environment.py
parentce9c4fd98f8201ad9be1a1f4e99950e6070a51b1 (diff)
downloadSCons-d3c6a4a199beff6e4d28725da9c0b0a052349359.zip
SCons-d3c6a4a199beff6e4d28725da9c0b0a052349359.tar.gz
SCons-d3c6a4a199beff6e4d28725da9c0b0a052349359.tar.bz2
Work around Py3.10 optimizing out a builder test
BuilderBase class traps __bool__ call and raises InternalError. On Py 3.10a the unit test for this got optimized out, avoid this. While we're at it, eliminate remaining references to __nonzero__, which was a Py2-ism, replaced by __bool__. Closes #3860 Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Environment.py')
-rw-r--r--SCons/Environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/Environment.py b/SCons/Environment.py
index 0b8a20a..61128af 100644
--- a/SCons/Environment.py
+++ b/SCons/Environment.py
@@ -1538,7 +1538,7 @@ class Base(SubstitutionEnvironment):
def Dictionary(self, *args):
- """Return construction variables from an environment.
+ r"""Return construction variables from an environment.
Args:
\*args (optional): variable names to look up