patch: remove double variables in copyfile() func

This commit is contained in:
Bartosz SKOWRON 2008-10-24 20:46:56 +02:00
parent 566c5d9e55
commit 6ad08c06ee

View File

@ -31,9 +31,8 @@ def copyfile(src, dst, basedir=None):
raise util.Abort(_("cannot create %s: destination already exists") %
dst)
targetdir = os.path.dirname(absdst)
if not os.path.isdir(targetdir):
os.makedirs(targetdir)
if not os.path.isdir(basedir):
os.makedirs(basedir)
util.copyfile(abssrc, absdst)