Fixed a typo pointed out by AndreMiras

This commit is contained in:
Alexander Taylor 2018-05-22 20:38:23 +01:00
parent 52df08c8e2
commit 42fddafe2b

View file

@ -611,7 +611,8 @@ class Buildozer(object):
target = join(cwd, target)
self.debug('Rename {0} to {1}'.format(source, target))
if not os.path.isdir(os.path.dirname(target)):
self.error('Rename {0} to {1} fails becaues {2} is not a directory'.format(source, target, os.path.directory(target)))
self.error(('Rename {0} to {1} fails because {2} is not a '
'directory').format(source, target, target))
rename(source, target)
def file_copy(self, source, target, cwd=None):