~ubuntu-branches/ubuntu/oneiric/python2.6/oneiric

« back to all changes in this revision

Viewing changes to Lib/distutils/dir_util.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-08-07 20:03:08 UTC
  • mfrom: (10.1.27 sid)
  • Revision ID: james.westby@ubuntu.com-20100807200308-bwsyymoc4donr9a9
Tags: 2.6.6~rc1-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
# This module should be kept compatible with Python 2.1.
6
6
 
7
 
__revision__ = "$Id: dir_util.py 60923 2008-02-21 18:18:37Z guido.van.rossum $"
 
7
__revision__ = "$Id: dir_util.py 83648 2010-08-03 07:51:50Z ezio.melotti $"
8
8
 
9
9
import os, sys
10
10
from types import *
204
204
    _build_cmdtuple(directory, cmdtuples)
205
205
    for cmd in cmdtuples:
206
206
        try:
207
 
            apply(cmd[0], (cmd[1],))
 
207
            cmd[0](cmd[1])
208
208
            # remove dir from cache if it's already there
209
209
            abspath = os.path.abspath(cmd[1])
210
210
            if abspath in _path_created: