##// END OF EJS Templates
patch: remove double variables in copyfile() func
Bartosz SKOWRON <getxsick at gmail dot com> -
r7244:127a6244 default
parent child Browse files
Show More
@@ -31,9 +31,8 b' def copyfile(src, dst, basedir=None):'
31 raise util.Abort(_("cannot create %s: destination already exists") %
31 raise util.Abort(_("cannot create %s: destination already exists") %
32 dst)
32 dst)
33
33
34 targetdir = os.path.dirname(absdst)
34 if not os.path.isdir(basedir):
35 if not os.path.isdir(targetdir):
35 os.makedirs(basedir)
36 os.makedirs(targetdir)
37
36
38 util.copyfile(abssrc, absdst)
37 util.copyfile(abssrc, absdst)
39
38
General Comments 0
You need to be logged in to leave comments. Login now