diff options
author | Raymond Hettinger <python@rcn.com> | 2004-12-05 01:58:09 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-12-05 01:58:09 (GMT) |
commit | f3fa9460dee3a11f862bd43fb7e4a70e994363e6 (patch) | |
tree | 956ea5e541e3801d84eda964c854f39f556e2c1e /Lib/filecmp.py | |
parent | 664347be946f0a217f91259f93962727ba84c287 (diff) | |
download | cpython-f3fa9460dee3a11f862bd43fb7e4a70e994363e6.zip cpython-f3fa9460dee3a11f862bd43fb7e4a70e994363e6.tar.gz cpython-f3fa9460dee3a11f862bd43fb7e4a70e994363e6.tar.bz2 |
Removed deprecated use_statcache argument.
Diffstat (limited to 'Lib/filecmp.py')
-rw-r--r-- | Lib/filecmp.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Lib/filecmp.py b/Lib/filecmp.py index 089c667..35cedef 100644 --- a/Lib/filecmp.py +++ b/Lib/filecmp.py @@ -19,7 +19,7 @@ __all__ = ["cmp","dircmp","cmpfiles"] _cache = {} BUFSIZE=8*1024 -def cmp(f1, f2, shallow=1, use_statcache=None): +def cmp(f1, f2, shallow=1): """Compare two files. Arguments: @@ -31,8 +31,6 @@ def cmp(f1, f2, shallow=1, use_statcache=None): shallow -- Just check stat signature (do not read the files). defaults to 1. - use_statcache -- obsolete argument. - Return value: True if the files are the same, False otherwise. @@ -41,9 +39,6 @@ def cmp(f1, f2, shallow=1, use_statcache=None): with a cache invalidation mechanism relying on stale signatures. """ - if use_statcache is not None: - warnings.warn("use_statcache argument is deprecated", - DeprecationWarning) s1 = _sig(os.stat(f1)) s2 = _sig(os.stat(f2)) @@ -244,13 +239,12 @@ class dircmp: self.methodmap[attr](self) return getattr(self, attr) -def cmpfiles(a, b, common, shallow=1, use_statcache=None): +def cmpfiles(a, b, common, shallow=1): """Compare common files in two directories. a, b -- directory names common -- list of file names found in both directories shallow -- if true, do comparison based solely on stat() information - use_statcache -- obsolete argument Returns a tuple of three lists: files that compare equal @@ -258,9 +252,6 @@ def cmpfiles(a, b, common, shallow=1, use_statcache=None): filenames that aren't regular files. """ - if use_statcache is not None: - warnings.warn("use_statcache argument is deprecated", - DeprecationWarning) res = ([], [], []) for x in common: ax = os.path.join(a, x) |