summaryrefslogtreecommitdiffstats
path: root/SCons/Node/FS.py
Commit message (Collapse)AuthorAgeFilesLines
* [PR #3833] change another place where file might not existMats Wichmann2020-12-131-1/+1
| | | | | | | | belt-and-suspenders: earlier check for file size should already have filtered out the "not rexists" case, but just to be sure, return NOFILE marker here as well. Signed-off-by: Mats Wichmann <mats@linux.com>
* Make the sig for missing file differ from empty fileMats Wichmann2020-11-241-25/+18
| | | | | | Fixes #3014 Signed-off-by: Mats Wichmann <mats@linux.com>
* Drop yet more py2 compatibility stuffMats Wichmann2020-11-191-1/+1
| | | | | | | | | | | | A checker flagged the zip_longest/izip_longest workaround, that's no longer needed. Similar for the shutil.SameFileError piece, that's standard since 3.4 and doesn't need checking for. The checker also complained about return contents.decode('utf-8', error='backslashreplace') the correct kward is errors, not error - corrected. Signed-off-by: Mats Wichmann <mats@linux.com>
* Drop some more Py2 compat thingsMats Wichmann2020-10-131-1/+1
| | | | | | | | | | | | | Change exception type in a a couple of try block to what could go wrong, Py3 would not raise UniCodeDecodeError for these cases One try-import of StringIO module sconsign does not need a decode that was claimed as compat hack Remove some sys.version_info checks Use more modern way to get Python details in test frawmework AddMethod updated and RenameFunction dropped - it had become a one-liner and had no clients other than AddMethod (never exposed as public) Signed-off-by: Mats Wichmann <mats@linux.com>
* Update some copyright strings and drop __revision__ [skip appveyor]Mats Wichmann2020-09-231-17/+12
| | | | | | | | | | | | | | | | | | Touches the first and second levels of SCons (except SCons.Tool), not tests or docs which remain TODO. Make sure docstring is first non-comment content, eliminate cases where docstring is set elsewhere but assigns to __doc__ - this approach of course worked inside Python, but confuses various tools. Some module-level docstrings modified a bit, in particular the convention of having the name of the module as the first line is dropped, replaced by a summary description going there instead - this improves the look in the API Docs, which otherwise display something like: SCons.Foo - SCons.Foo Signed-off-by: Mats Wichmann <mats@linux.com>
* Address review feedbackAdam Gross2020-08-031-4/+5
| | | | Do the "* 1024" when setting File.md5_chunksize, not when using it later.
* Fix SCons.Node.FS.File.get_csig() usage of md5_chunksizeAdam Gross2020-08-031-1/+1
| | | | | | md5_chunksize is documented to be in kilobytes, but this function was using it as though it is in bytes. This change fixes that, adding a test to confirm the correct behavior for a few different cases.
* classes no longer explicitly inherit from objectMats Wichmann2020-05-241-4/+4
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge remote-tracking branch 'origin/master' into clear-dangling-linksDaniel Moody2020-05-061-3/+28
|
* Reorganize the repo. Moved src/engine/SCons to ./SCons to be more in line ↵William Deegan2020-05-061-0/+3806
with current python packaging practices