]> granicus.if.org Git - python/commitdiff
The comment said:
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 18:55:54 +0000 (18:55 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Jun 2002 18:55:54 +0000 (18:55 +0000)
 # 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.

Lib/distutils/dep_util.py

index 9edba4c8ae6dee7cc5c6676ad23d2308d57d5b89..bbb6d235b3a29d13799c2d886511a1af3a85c84d 100644 (file)
@@ -93,23 +93,3 @@ def newer_group (sources, target, missing='error'):
         return 0
 
 # 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 ()