[Python-checkins] python/dist/src/Lib/distutils dep_util.py,1.3,1.4
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Tue, 04 Jun 2002 11:55:56 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv11844
Modified Files:
dep_util.py
Log Message:
The comment said:
# XXX this isn't used anywhere, and worse, it has the same name as a method
# in Command with subtly different semantics. (This one just has one
# source -> one dest; that one has many sources -> one dest.) Nuke it?
Yes. Nuke it.
Index: dep_util.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/dep_util.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** dep_util.py 6 Dec 2001 20:51:35 -0000 1.3
--- dep_util.py 4 Jun 2002 18:55:54 -0000 1.4
***************
*** 94,115 ****
# newer_group ()
-
-
- # XXX this isn't used anywhere, and worse, it has the same name as a method
- # in Command with subtly different semantics. (This one just has one
- # source -> one dest; that one has many sources -> one dest.) Nuke it?
- def make_file (src, dst, func, args,
- verbose=0, update_message=None, noupdate_message=None):
- """Makes 'dst' from 'src' (both filenames) by calling 'func' with
- 'args', but only if it needs to: i.e. if 'dst' does not exist or 'src'
- is newer than 'dst'.
- """
- if newer(src, dst):
- if verbose and update_message:
- print update_message
- apply(func, args)
- else:
- if verbose and noupdate_message:
- print noupdate_message
-
- # make_file ()
--- 94,95 ----