summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Convert old-style classes in Tool/__init__.py to new-style classes.Steven Knight2010-05-141-3/+3
|
* Convert old-style classes in Script/SConscript.py to new-style classes.Steven Knight2010-05-141-2/+2
|
* Convert old-style classes in Script/Main.py to new-style classes.Steven Knight2010-05-141-5/+5
|
* Convert old-style classes in SConsign.py to new-style classes.Steven Knight2010-05-141-2/+2
|
* Convert old-style classes in SConf.py to new-style classes.Steven Knight2010-05-141-4/+4
|
* Convert old-style class in Options/PathOption.py to new-style class.Steven Knight2010-05-141-1/+1
|
* Convert old-style classes in Memoize.py to new-style classes.Steven Knight2010-05-141-2/+2
|
* Convert old-styles in Job.py to new-style classes.Steven Knight2010-05-141-5/+5
|
* Convert old-style classes in Defaults.py to new-style classes.Steven Knight2010-05-131-2/+2
|
* Convert old-style class in CacheDir.py.Steven Knight2010-05-131-1/+1
|
* Add a .hgignore file.Steven Knight2010-05-131-0/+7
|
* Convert old-style classes in Builder.py to new-style classes.Steven Knight2010-05-131-3/+3
|
* Convert the old-style classes in Action.py to new-style classes.Steven Knight2010-05-131-6/+6
|
* Convert old-style classes to new-style classes.Steven Knight2010-05-122-20/+22
| | | | | | | Leave the Proxy class in Node/FSTests.py, which can't be converted until we convert Node/FS.py itself. Update the AttributeError matches to search for the new "'Foo' object..." error message in addition to the old "'Foo' instance..." message.
* Convert old-style utility classes in unit test files (*Tests.py)Steven Knight2010-05-1225-127/+127
| | | | to new-style classes.
* Added entries for 2.0.0.alpha.20100508William Deegan2010-05-102-2/+6
|
* Merged revisions 4832,4834-4836 via svnmerge fromWilliam Deegan2010-05-095-1035/+61
| | | | | | | | | | | | | | | | | | | | | | http://scons.tigris.org/svn/scons/checkpoint/trunk ........ r4832 | bdbaddog | 2010-05-03 23:00:21 -0700 (Mon, 03 May 2010) | 3 lines Updated RELEASE.txt from Greg Noel ........ r4834 | bdbaddog | 2010-05-03 23:34:14 -0700 (Mon, 03 May 2010) | 3 lines Updates for 2.0.0.alpha.20100503 checkpoint release ........ r4835 | bdbaddog | 2010-05-08 14:27:43 -0700 (Sat, 08 May 2010) | 3 lines Change test to check for version 3.0 and expect failure, since we're now working on a 2.0 checkpoint. ........ r4836 | bdbaddog | 2010-05-08 14:31:58 -0700 (Sat, 08 May 2010) | 3 lines Update build date. Fix checkpoint build version string to remove the .dYYYYMMDD and change to .YYYYMMDD ........
* Updated for 1.3.0.d20100501 checkpoint.William Deegan2010-05-022-10/+10
| | | | Also minor updates to roadmap to change from 2009 to 2010
* Updated CHANGES.txt for checkpointGreg Noel2010-05-021-4/+56
|
* Use slice built-in instead of types.SliceTypeGreg Noel2010-05-012-4/+2
|
* Add test routine to exactly match a set of lines no matter the orderGreg Noel2010-05-012-6/+56
|
* Issue 2498: fix SourceFileScanner documentation references.Steven Knight2010-04-302-7/+12
|
* Restore </example> tags mistakenly deleted along with 1.5.2 code.Steven Knight2010-04-272-0/+6
|
* Fix test/option/profile.py to hide old-style import from fixers.Greg Noel2010-04-271-22/+6
|
* Python 2.6 forward compatibility with 3.x: use a subclass of io.StringIOSteven Knight2010-04-271-2/+15
| | | | to enforce that all strings passed to the .write() method are unicode.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-268-70/+71
| | | | Apply all the remaining changes from the fixers.
* Fix regression tests (imports not happening as expected)Greg Noel2010-04-255-28/+12
|
* Add compat support for renaming '_winreg' as 'winreg' in Python 3.x.Greg Noel2010-04-253-64/+49
|
* Convert to Python 3.x division rules.Greg Noel2010-04-2415-22/+31
|
* Remove the compat version of the "platform" module.Greg Noel2010-04-242-244/+0
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-24115-1268/+305
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* http://scons.tigris.org/issues/show_bug.cgi?id=2317Greg Noel2010-04-2328-44/+44
| | | | | | Apply the refactorings from the 'dict' fixer, less occurrences that were manually audited to be safe. Also pick up changes in bin/sfsum, a Python file that was not being scanned before.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-213-38/+15
| | | | Apply the 'itertools' and 'itertools_imports' fixers.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-2111-59/+40
| | | | | | Pass the python executable from the -P option to runtest to TestCmd.py. Create the escaped executable name in TestCmd.py as well. Pass those two values into derived test modules. Fix cascade problems in test scripts due to incorrect assumptions about the name of the executable.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-205-4/+5
| | | | | | | One-line changes: Wrap pickle.dump with staticmethod(). Keep softspace in Unbuffered wrapper class for backward compatibility with 3.x. Use ModuleType as a factory function rather than a base class. Derive exception class from something derived from BaseException (required for 3.x).
* Fix the updated code that uses os.walk() to remove matched directories.Steven Knight2010-04-201-5/+9
| | | | Also remove any .svn directories we find.
* Rewrite uses of reduce(), which is being deprecated for Python 3.x.Steven Knight2010-04-206-6/+21
|
* Remove the compat version of the tempfile.mkstemp() function.Steven Knight2010-04-191-35/+0
|
* Remove the compat shutil.move() function.Steven Knight2010-04-191-39/+0
|
* Remove the compat version of the "shlex" module.Steven Knight2010-04-195-351/+0
|
* Remove the compat version of the "textwrap" module.Steven Knight2010-04-195-396/+0
|
* Remove the compat version of the "optparse" module.Steven Knight2010-04-194-1727/+0
|
* Remove the compat version of the "itertools" module.Steven Knight2010-04-194-131/+0
|
* Remove compat fnmatch.filter() support.Steven Knight2010-04-191-28/+0
|
* Remove use of the "new" module from --debug=memoizer support.Steven Knight2010-04-193-125/+31
|
* Remove uses of the "new" module, replacing use of its functions withSteven Knight2010-04-191-10/+6
| | | | direct calls to the types.{Function,Method}Type classes.
* Index: test/Variables/help.pyGreg Noel2010-04-1910-149/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | =================================================================== --- test/Variables/help.py (revision 4792) +++ test/Variables/help.py (working copy) @@ -28,23 +28,15 @@ Test the Variables help messages. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') +import TestSCons str_True = str(True) str_False = str(False) -import TestSCons - test = TestSCons.TestSCons() - - workpath = test.workpath() qtpath = os.path.join(workpath, 'qt') libpath = os.path.join(qtpath, 'lib') Index: test/Variables/PackageVariable.py =================================================================== --- test/Variables/PackageVariable.py (revision 4792) +++ test/Variables/PackageVariable.py (working copy) @@ -28,14 +28,8 @@ Test the PackageVariable canned Variable type. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons() Index: test/Variables/BoolVariable.py =================================================================== --- test/Variables/BoolVariable.py (revision 4792) +++ test/Variables/BoolVariable.py (working copy) @@ -28,14 +28,8 @@ Test the BoolVariable canned Variable type. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons() Index: test/Deprecated/Options/help.py =================================================================== --- test/Deprecated/Options/help.py (revision 4792) +++ test/Deprecated/Options/help.py (working copy) @@ -28,24 +28,16 @@ Test the Options help messages. """ -import os.path +import os import re -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') +import TestSCons str_True = str(True) str_False = str(False) -import TestSCons - test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) - - workpath = test.workpath() qtpath = os.path.join(workpath, 'qt') libpath = os.path.join(qtpath, 'lib') Index: test/Deprecated/Options/PackageOption.py =================================================================== --- test/Deprecated/Options/PackageOption.py (revision 4792) +++ test/Deprecated/Options/PackageOption.py (working copy) @@ -28,14 +28,8 @@ Test the PackageOption canned Option type. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) Index: test/Deprecated/Options/BoolOption.py =================================================================== --- test/Deprecated/Options/BoolOption.py (revision 4792) +++ test/Deprecated/Options/BoolOption.py (working copy) @@ -28,12 +28,6 @@ Test the BoolOption canned Option type. """ -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) Index: src/script/scons-time.py =================================================================== --- src/script/scons-time.py (revision 4792) +++ src/script/scons-time.py (working copy) @@ -45,13 +45,6 @@ import time try: - True, False -except NameError: - # Pre-2.2 Python has no True or False keyword. - exec('True = not 0') - exec('False = not 1') - -try: sorted except NameError: # Pre-2.4 Python has no sorted() function. Index: src/engine/SCons/compat/_scons_builtins.py =================================================================== --- src/engine/SCons/compat/_scons_builtins.py (revision 4792) +++ src/engine/SCons/compat/_scons_builtins.py (working copy) @@ -37,13 +37,8 @@ all() any() - bool() - dict() sorted() memoryview() - True - False - zip() Implementations of functions are *NOT* guaranteed to be fully compliant with these functions in later versions of Python. We are only concerned @@ -62,22 +57,6 @@ import builtins try: - False -except NameError: - # Pre-2.2 Python has no False keyword. - exec('builtins.False = not 1') - # Assign to False in this module namespace so it shows up in pydoc output. - #False = False - -try: - True -except NameError: - # Pre-2.2 Python has no True keyword. - exec('builtins.True = not 0') - # Assign to True in this module namespace so it shows up in pydoc output. - #True = True - -try: all except NameError: # Pre-2.5 Python has no all() function. @@ -108,42 +87,6 @@ any = any try: - bool -except NameError: - # Pre-2.2 Python has no bool() function. - def bool(value): - """Demote a value to 0 or 1, depending on its truth value. - - This is not to be confused with types.BooleanType, which is - way too hard to duplicate in early Python versions to be - worth the trouble. - """ - return not not value - builtins.bool = bool - bool = bool - -try: - dict -except NameError: - # Pre-2.2 Python has no dict() keyword. - def dict(seq=[], **kwargs): - """ - New dictionary initialization. - """ - d = {} - for k, v in seq: - d[k] = v - d.update(kwargs) - return d - builtins.dict = dict - -try: - file -except NameError: - # Pre-2.2 Python has no file() function. - builtins.file = open - -try: memoryview except NameError: # Pre-2.7 doesn't have the memoryview() built-in. @@ -185,27 +128,6 @@ return result builtins.sorted = sorted -# -try: - zip -except NameError: - # Pre-2.2 Python has no zip() function. - def zip(*lists): - """ - Emulates the behavior we need from the built-in zip() function - added in Python 2.2. - - Returns a list of tuples, where each tuple contains the i-th - element rom each of the argument sequences. The returned - list is truncated in length to the length of the shortest - argument sequence. - """ - result = [] - for i in range(min(list(map(len, lists)))): - result.append(tuple([l[i] for l in lists])) - return result - builtins.zip = zip - #if sys.version_info[:3] in ((2, 2, 0), (2, 2, 1)): # def lstrip(s, c=string.whitespace): # while s and s[0] in c: Index: runtest.py =================================================================== --- runtest.py (revision 4792) +++ runtest.py (working copy) @@ -97,17 +97,6 @@ import time try: - x = True -except NameError: - True = not 0 - False = not 1 -else: - del x - -if not hasattr(os, 'WEXITSTATUS'): - os.WEXITSTATUS = lambda x: x - -try: sorted except NameError: # Pre-2.4 Python has no sorted() function. Index: QMTest/TestSCons.py =================================================================== --- QMTest/TestSCons.py (revision 4792) +++ QMTest/TestSCons.py (working copy) @@ -23,12 +23,6 @@ import sys import time -try: - True -except NameError: - exec('True = not 0') - exec('False = not 1') - from TestCommon import * from TestCommon import __all__
* Add a -3 option to print Python 3.x incompatibility warnings during tests.Steven Knight2010-04-191-2/+13
|
* Replace remaining os.path.walk() calls with os.walk().Steven Knight2010-04-1811-149/+117
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-1716-61/+41
| | | | | Fix the 'assignment to True or False' and the '__getitem__ not supported for exception classes' deprecation warnings.