[Python-checkins] python/dist/src/Lib filecmp.py,1.17,1.18
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sun Dec 5 02:58:41 CET 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10193/Lib
Modified Files:
filecmp.py
Log Message:
Removed deprecated use_statcache argument.
Index: filecmp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/filecmp.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- filecmp.py 2 Sep 2003 05:42:00 -0000 1.17
+++ filecmp.py 5 Dec 2004 01:58:08 -0000 1.18
@@ -19,7 +19,7 @@
_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 @@
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 @@
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 @@
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 @@
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)
More information about the Python-checkins
mailing list