diff options
Diffstat (limited to 'SCons/Script/SConsOptions.py')
-rw-r--r-- | SCons/Script/SConsOptions.py | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/SCons/Script/SConsOptions.py b/SCons/Script/SConsOptions.py index aa31635..7b79292 100644 --- a/SCons/Script/SConsOptions.py +++ b/SCons/Script/SConsOptions.py @@ -1,5 +1,6 @@ +# MIT License # -# __COPYRIGHT__ +# Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -19,9 +20,6 @@ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# - -__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import optparse import re @@ -30,12 +28,8 @@ import textwrap no_hyphen_re = re.compile(r'(\s+|(?<=[\w!\"\'&.,?])-{2,}(?=\w))') -try: - from gettext import gettext -except ImportError: - def gettext(message): - return message -_ = gettext +import gettext +_ = gettext.gettext import SCons.Node.FS import SCons.Platform.virtualenv @@ -126,7 +120,8 @@ class SConsValues(optparse.Values): # is not available. raise AttributeError(attr) - + # keep this list in sync with the SetOption doc in SCons/Script/Main.xml + # search for UPDATE_SETOPTION_DOCS there. settable = [ 'clean', 'diskcheck', |