diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-07-20 15:24:49 -0400 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-07-20 15:24:49 -0400 |
commit | a117a8887c284149a81aea90b0bdec30c6771cac (patch) | |
tree | a5aaf5d8175499480cb46cb5053c710541d563a3 | |
parent | 734f72ee7418cba987462a799d3d288cb8d95bf0 (diff) | |
download | scons-a117a8887c284149a81aea90b0bdec30c6771cac.tar.gz |
change comment to docstring as it should have been
-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 85f9fa77..60a45e40 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 |