diff Lib/distutils/command/build_py.py @ 37048:c048a09d06ff

Remove apply()
author Neal Norwitz <nnorwitz@gmail.com>
date Fri, 17 Mar 2006 08:00:19 +0000
parents 893d46576737
children 99027c2b3fd2
line wrap: on
line diff
--- a/Lib/distutils/command/build_py.py	Fri Mar 17 06:58:45 2006 +0000
+++ b/Lib/distutils/command/build_py.py	Fri Mar 17 08:00:19 2006 +0000
@@ -154,7 +154,7 @@
 
         if not self.package_dir:
             if path:
-                return apply(os.path.join, path)
+                return os.path.join(*path)
             else:
                 return ''
         else:
@@ -167,7 +167,7 @@
                     del path[-1]
                 else:
                     tail.insert(0, pdir)
-                    return apply(os.path.join, tail)
+                    return os.path.join(*tail)
             else:
                 # Oops, got all the way through 'path' without finding a
                 # match in package_dir.  If package_dir defines a directory
@@ -181,7 +181,7 @@
                     tail.insert(0, pdir)
 
                 if tail:
-                    return apply(os.path.join, tail)
+                    return os.path.join(*tail)
                 else:
                     return ''
 
@@ -335,7 +335,7 @@
 
     def get_module_outfile (self, build_dir, package, module):
         outfile_path = [build_dir] + list(package) + [module + ".py"]
-        return apply(os.path.join, outfile_path)
+        return os.path.join(*outfile_path)
 
 
     def get_outputs (self, include_bytecode=1):