summaryrefslogtreecommitdiffstats
path: root/Lib/filecmp.py
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #453515: filecmp.dircmp case sensitivity bugRaymond Hettinger2003-09-021-6/+6
|
* Module review:Raymond Hettinger2003-02-271-47/+22
| | | | | | | | | | * Changed variable name from 'list' to 'flist'. * Replaced "while 1" with "while True". * Replaced if/elif/elif/elif structure with a shorter and faster dispatch dictionary that maps attrs to methods. * Simplified and sped comparison logic by using ifilter, ifilterfalse, and dict.fromkeys. * Used True and False rather than 1 and 0.
* Add DeprecationWarning when use_statcache argument is suppliedAndrew M. Kuchling2003-02-061-4/+12
| | | | Fix use of GetoptError, so demo() now works
* [Bug #680494] filecmp.py uses obsolete statcache module.Andrew M. Kuchling2003-02-061-17/+9
| | | | | | | Simply replace all uses of statcache with os.stat. Should I add a DeprecationWarning triggered if the use_statcache argument is supplied, so we can remove it in 2.4?
* Replaced .keys() with dictionary iteratorsRaymond Hettinger2002-06-021-6/+6
|
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-5/+5
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-4/+4
|
* more __all__ updatesSkip Montanaro2001-01-201-0/+2
|
* Whitespace normalization.Tim Peters2001-01-141-3/+3
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-2/+3
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Call of _cmp had wrong number of paramereters.Moshe Zadka2000-12-031-2/+2
| | | | Fixed definition of _cmp.
* cmpfiles(): Added shallow and use_statcache parameters, with same meaningsFred Drake2000-07-031-14/+13
| | | | | | and defaults as for filecmp.cmp(). Updated docstring accordingly, and formatted it more like others in the standard library.
* Whoops! We just discovered that Gordon's revamp of this module wasGuido van Rossum2000-06-291-49/+310
| | | | | | | | accidentally wiped out by Ping's patch (which shouldn't have affected this file at all, had Ping done a cvs update). This checkin restores Gordon's version, with Fredrik's change merged back in.
* Fredrik Lundh:Guido van Rossum2000-03-281-10/+21
| | | | | | | | | | The new filecmp module has an optional argument called use_statcache which is documented as a true/false value, but used as an tuple index. This patches replaces the tuple stuff with a good old if- statement, and also removes a few other tuple pack/unpack constructs (if not else, this saves a few bytes in the PYC file, and a few microseconds when using the module ;-).
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-299/+38
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* # module filecmpGuido van Rossum2000-02-031-38/+299
| | | | | | | | | | | | | | | # combo of old cmp, cmpcache and dircmp with redundancies removed # # bugs fixed: # dircmp.dircmp was not ignoring IGNORES # old stuff could falsely report files as "identical" when contents actually differed # # enhancements: # dircmp has a more straightforward interface #cmp enhanced by Moshe Zadca #dircmp enhanced byGordon McMillan [some layout changes by GvR]
* New module by Moshe Zadka (submitted on Sept. 25). This unifies theGuido van Rossum1999-10-261-0/+57
functionality of cmp.py and cmpcache.py, which are hereby declared obsolescent.