"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "engine/SCons/Variables/BoolVariable.py" between
scons-3.0.1.tar.gz and scons-3.0.2.tar.gz

About: SCons is a software construction tool (a Python script and a set of modules as a superior alternative to the classic "Make" build tool).

BoolVariable.py  (scons-3.0.1):BoolVariable.py  (scons-3.0.2)
skipping to change at line 15 skipping to change at line 15
Usage example:: Usage example::
opts = Variables() opts = Variables()
opts.Add(BoolVariable('embedded', 'build for an embedded system', 0)) opts.Add(BoolVariable('embedded', 'build for an embedded system', 0))
... ...
if env['embedded'] == 1: if env['embedded'] == 1:
... ...
""" """
# #
# Copyright (c) 2001 - 2017 The SCons Foundation # Copyright (c) 2001 - 2018 The SCons Foundation
# #
# Permission is hereby granted, free of charge, to any person obtaining # Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the # a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including # "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, # without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to # distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to # permit persons to whom the Software is furnished to do so, subject to
# the following conditions: # the following conditions:
# #
# The above copyright notice and this permission notice shall be included # The above copyright notice and this permission notice shall be included
skipping to change at line 37 skipping to change at line 37
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# #
__revision__ = "src/engine/SCons/Variables/BoolVariable.py 74b2c53bc42290e911b33 4a6b44f187da698a668 2017/11/14 13:16:53 bdbaddog" __revision__ = "src/engine/SCons/Variables/BoolVariable.py 425375072d7b582a2df0d b815c8eaeaa489468ab 2019-01-01 18:32:02 bdbaddog"
__all__ = ['BoolVariable',] __all__ = ['BoolVariable',]
import SCons.Errors import SCons.Errors
__true_strings = ('y', 'yes', 'true', 't', '1', 'on' , 'all' ) __true_strings = ('y', 'yes', 'true', 't', '1', 'on' , 'all' )
__false_strings = ('n', 'no', 'false', 'f', '0', 'off', 'none') __false_strings = ('n', 'no', 'false', 'f', '0', 'off', 'none')
def _text2bool(val): def _text2bool(val):
""" """
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)