summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/file_util.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8876: distutils now falls back to copying files when hard linking ↵Antoine Pitrou2014-10-301-13/+21
| | | | | | doesn't work. This allows use with special filesystems such as VirtualBox shared folders.
* Issue #22182: Use e.args to unpack exceptions correctly in ↵Berker Peksag2014-08-291-2/+2
| | | | | | distutils.file_util.move_file. Patch by Claudiu Popa.
* Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-8/+8
|
* Fix closes Issue11439 Remove the SVN keywords from the code as it is no ↵Senthil Kumaran2011-07-281-2/+0
| | | | longer applicable in hg. Patch Contributed by Neil Muller.
* Remove traces of Mac OS 9 support, again (#9508).Éric Araujo2010-11-061-9/+0
| | | | | | This was done in r80805 (#7908) and erroneously brought back by the distutils revert. This commit removes more code than the original, which was uncomplete. There is no NEWS entry, like in r80805.
* Always close files in distutils code and tests (#10252).Éric Araujo2010-11-051-3/+5
|
* reverted distutils its 3.1 state. All new work is now happening in ↵Tarek Ziadé2010-07-221-25/+33
| | | | disutils2, and distutils is now feature-frozen.
* Remove traces of MacOS9 support.Ronald Oussoren2010-05-051-9/+0
| | | | Fix for issue #7908
* Merged revisions 73814-73815 via svnmerge fromTarek Ziadé2009-07-031-24/+25
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73814 | tarek.ziade | 2009-07-03 21:01:12 +0200 (Fri, 03 Jul 2009) | 1 line basic tests to raise distutils.file_util coverage ........ r73815 | tarek.ziade | 2009-07-03 21:14:49 +0200 (Fri, 03 Jul 2009) | 1 line cleaned distutils.file_util ........
* Merged revisions 69332 via svnmerge fromTarek Ziadé2009-02-061-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69332 | tarek.ziade | 2009-02-06 01:49:45 +0100 (Fri, 06 Feb 2009) | 1 line using >= so setting verbose to 2 will work as well ........
* Merged revisions 69324 via svnmerge fromTarek Ziadé2009-02-061-9/+13
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69324 | tarek.ziade | 2009-02-06 01:31:59 +0100 (Fri, 06 Feb 2009) | 1 line Fixed #1276768: verbose option was not used in the code. ........
* Fix [issue4038] py3k error in distutils file_copy exception handlers. r=martin.Mark Hammond2008-10-051-10/+5
|
* Fix more exception slicing.Georg Brandl2008-01-061-1/+1
|
* General cleanup, raise normalization in Lib/distutils.Collin Winter2007-08-301-54/+34
|
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-8/+15
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-2/+0
| | | | is often out of date
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-14/+9
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* [Bug #220993; may also fix bug #479469] Fix flakiness when oldAndrew M. Kuchling2002-02-011-0/+7
| | | | | | | | | installations are present, by always unlinking the destination file before copying to it. Without the unlink(), the copied file remains owned by its previous UID, causing the subsequent chmod() to fail. Bugfix candidate, though it may cause changes on platforms where file ownership behaves differently.
* Whitespace normalization.Fred Drake2001-12-061-8/+8
|
* Import the errno moduleAndrew M. Kuchling2001-08-091-1/+2
|
* Don't "import *" from stat at all -- just import what's needed, andGreg Ward2001-07-251-1/+1
| | | | do it back in copy_file() (not at module level).
* move "from stat import *" to module levelJeremy Hylton2001-01-311-1/+1
|
* Changed 'copy_file()' so it returns a tuple (dest_name, copied) -- hopefully,Greg Ward2000-09-301-6/+7
| | | | this will please everyone (as if that's possible).
* Whitespace fix.Greg Ward2000-09-261-1/+2
|
* Reformat docstrings.Greg Ward2000-09-231-65/+63
| | | | Standardize use of whitespace on function calls.
* Bastian Kleineidam: 'copy_file()' now returns the output filename, ratherGreg Ward2000-06-231-6/+5
| | | | than a boolean indicating whether it did the copy.
* Tweaked output of 'copy_file()': if copying to a new name, show the wholeGreg Ward2000-05-201-3/+6
| | | | destination path, otherwise show just the directory.
* Sporadic, untested Python 1.5.1 compatibility changes.Greg Ward2000-04-221-1/+1
|
* Reorganization: ripped util.py to shreds, creating in the process:Greg Ward2000-04-041-0/+248
- file_util.py: operations on single files - dir_util.py: operations on whole directories or directory trees - dep_util.py: simple timestamp-based dependency analysis - archive_util.py: creation of archive (tar, zip, ...) files The functions left in util.py are miscellany that don't fit in any of the new files.