summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/compat/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* use pickle.HIGHEST_PROTOCOL instead of -1Daniel Holth2016-06-211-1/+2
|
* centralize the preferred pickle protocol; use highest protocol.Daniel Holth2016-06-201-0/+5
|
* just throw away __slots__ on pypyDaniel Holth2016-06-071-1/+1
|
* avoid using __slots__ on Node and Executor (but only on PyPy)Daniel Holth2016-06-061-0/+47
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-129/+34
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-101-53/+3
| |
| * update logic for sys.intern in compat module. Don't need to support pre 2.7 ↵William Deegan2015-11-191-9/+7
| | | | | | | | anymore
| * remove os.path.lexists from compat module. 2.7 has itWilliam Deegan2015-11-191-7/+0
| |
| * remove sys.maxsize from compat module. 2.7 has itWilliam Deegan2015-11-191-9/+0
| |
| * fix broken cleanup of collections removal from compatWilliam Deegan2015-11-191-0/+29
| |
| * remove compat os.devnull. python 2.7 supports itWilliam Deegan2015-11-191-11/+0
| |
| * remove compat io. python 2.7 supports ioWilliam Deegan2015-11-191-7/+0
| |
| * remove compat collections. python 2.7 supports collectionsWilliam Deegan2015-11-191-26/+0
| |
| * removing compat for sets. python 2.7 supports setsWilliam Deegan2015-11-191-8/+0
| |
| * remove compat module for subprocess. No longer needed as we are only going ↵William Deegan2015-11-191-6/+0
| | | | | | | | to run on python 2.7.x
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-1/+1
|/
* For some reason, using the `imp` module to do imports doesn't do quite theGreg Noel2010-06-071-7/+6
| | | | | | | | | same thing as using the 'import' statement, even though the documentation clearly says that the 'import' statement uses the 'imp' module under the covers. I have no clue why, but there were some cases where it made a difference. The code was changed to using 'imp' to prevent the fixers from trying to convert the old names to the new names, so this changeset uses a different technique to hide the old names.
* Fix regression tests (imports not happening as expected)Greg Noel2010-04-251-14/+1
|
* Add compat support for renaming '_winreg' as 'winreg' in Python 3.x.Greg Noel2010-04-251-50/+26
|
* Remove the compat version of the "platform" module.Greg Noel2010-04-241-7/+0
|
* 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-191-14/+0
|
* Remove the compat version of the "textwrap" module.Steven Knight2010-04-191-8/+0
|
* Remove the compat version of the "optparse" module.Steven Knight2010-04-191-6/+0
|
* Remove the compat version of the "itertools" module.Steven Knight2010-04-191-5/+0
|
* Remove compat fnmatch.filter() support.Steven Knight2010-04-191-28/+0
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-12/+35
| | | | | | | | | Fixes due to running the regression tests with the '-3' option to Python2.6, which causes the run-time to look for potential compatibility problems with Python 3.x. In some cases, all we can do is quiet the warning since we still support Python versions that can't use the newer idiom. In other cases, we fix the problem. This patch contains a mix of quieting and fixing, plus a little lint.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-1/+1
| | | | | | Apply the first part of the 'raise' fixer (the three-argument cases are not converted and will need to wait until native support of with_traceback() is available).
* Add a stub compat/_scon_dbm.py module and copy whichdb.whichdb() toSteven Knight2010-04-141-2/+15
| | | | dbm.whichdb() if necessary.
* Avoid 3.0 fixer issues by not using module names as variable names.Steven Knight2010-04-131-19/+22
|
* Issue 2336: Forward compatibility for use of the "builtins" moduleSteven Knight2010-04-121-24/+20
| | | | instead of __builtin__.
* Towards issue 2336: Rename the compat/builtins.py module toSteven Knight2010-04-111-1/+1
| | | | compat/_scons_builtings.py, to avoid the name conflict.
* Add compat "collections" module for pre-2.4 Python verseions. For now.Steven Knight2010-04-111-18/+23
|
* Issue 2331: For forward compatibility, use "import pickle" and haveSteven Knight2010-04-091-0/+14
| | | | the SCons.compat layer import cPickle as pickle when it's available.
* Issue 2330: For forward compatibility, use "import profile" and haveSteven Knight2010-04-091-0/+14
| | | | the SCons.compat layer import cProfile as profile when it's available.
* Issue 2334: Use compatibility versions of collections.User{Dict,List,String}Steven Knight2010-04-071-5/+22
| | | | | instead of the deprecated User{Dict,List,String} modules. The two test scripts that use User{List,String} fall back on ImportError by hand.
* Issue 2332: Convert from using StringIO.StringIO class to using theSteven Knight2010-04-071-0/+6
| | | | | forward-compatible io.StringIO class, with the addition of an "io" compatibility module for Python versions before 2.6.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-03-291-14/+18
| | | | | | | | | | | | | The 'buffer' fixer simply replaces 'buffer( ... )' with 'memoryview( ... )', which is incorrect for our cases, so these changes had to be done by hand and a forward-compatibility class added. The 'xrange' fixer was applied. Manual changes were minimal: a few case in test strings and one use of 'range' as an identifer in the same scope as where 'xrange' was converted to 'range'. The "sets15" compat function, which provided backward compatibility for Python versions prior to 2.2, was removed as no longer needed.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-03-291-11/+4
| | | | | | | Accumulated small fixers: renames, next, zip, and intern. Files that were modified or added while developing on branches/pending didn't have the fixers previously applied. This patchset picks up those.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-251-0/+27
| | | | | development. Note that this set of changes is NOT backward-compatible; the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
* Add a compat module for the (Python 2.3) platform.py module so that testsSteven Knight2009-11-271-0/+8
| | | | | | using early Python versions work correctly, and without relying on the QMTest infrastructure adding the installed Python version's directories to sys.path.
* Python 1.5 compat: if 'text' in kw.keys()Steven Knight2009-11-231-1/+3
|
* 1.5 fix: use apply() instead of (*args, **kw).Steven Knight2009-11-151-2/+2
|
* 1.5.2 fix in compat/__init__.py: "flags |= ..." => "flags = flags | ..."Steven Knight2009-11-151-1/+1
|
* Apply patch submitted in issue #947 to fix race condition inGary Oberbrunner2009-11-151-0/+35
| | | | | TempFileMunge by using mkstemp instead of mktemp. Includes pre-Python-2.3 compat version of mkstemp. Thanks to Jim Randall.
* Issue 2152: Fix the ability of --clean to handle / delete brokenSteven Knight2009-02-231-0/+7
| | | | symlinks, as well as named pipes. (Mateusz Gruca)
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-091-0/+6
|
* Issue 2228: Add os.devnull to the SCons.compat layer.Steven Knight2008-10-281-0/+13
|
* 1.5 / 2.[012] compatiblity: shutil.move() function.Steven Knight2008-09-231-0/+40
|