diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-07-20 19:24:49 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-07-20 19:24:49 (GMT) |
commit | 7f45d674f1d288349f48c8218487cc473ce736d9 (patch) | |
tree | a5aaf5d8175499480cb46cb5053c710541d563a3 /src | |
parent | d2b59cc6d18e5d3139f623ab4285de34b3dd5596 (diff) | |
download | SCons-7f45d674f1d288349f48c8218487cc473ce736d9.zip SCons-7f45d674f1d288349f48c8218487cc473ce736d9.tar.gz SCons-7f45d674f1d288349f48c8218487cc473ce736d9.tar.bz2 |
change comment to docstring as it should have been
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Environment.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index 85f9fa7..60a45e4 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -2368,19 +2368,21 @@ class OverrideEnvironment(Base): Environment = Base -# An entry point for returning a proxy subclass instance that overrides -# the subst*() methods so they don't actually perform construction -# variable substitution. This is specifically intended to be the shim -# layer in between global function calls (which don't want construction -# variable substitution) and the DefaultEnvironment() (which would -# substitute variables if left to its own devices).""" -# -# We have to wrap this in a function that allows us to delay definition of -# the class until it's necessary, so that when it subclasses Environment -# it will pick up whatever Environment subclass the wrapper interface -# might have assigned to SCons.Environment.Environment. def NoSubstitutionProxy(subject): + """ + An entry point for returning a proxy subclass instance that overrides + the subst*() methods so they don't actually perform construction + variable substitution. This is specifically intended to be the shim + layer in between global function calls (which don't want construction + variable substitution) and the DefaultEnvironment() (which would + substitute variables if left to its own devices). + + We have to wrap this in a function that allows us to delay definition of + the class until it's necessary, so that when it subclasses Environment + it will pick up whatever Environment subclass the wrapper interface + might have assigned to SCons.Environment.Environment. + """ class _NoSubstitutionProxy(Environment): def __init__(self, subject): self.__dict__['__subject'] = subject |